function checkValue(value: string | null) {
value = (value as string).trim();
if (value == null || value === null || value === "" || value == "" || value === "null" || value == "null") {
return null;
}
else {
return value;
}
}
export default {checkValue} as
{checkValue: (value: string | null) => string | null};
Checking to verify if string is empty running. im running all these tests to cover my bases just wanted to know if there something could be done to simplify things?