Returns the value if defined, otherwise an empty string.
The value to check
The value or an empty string
const val = nullishToEmpty(undefined); // '' Copy
const val = nullishToEmpty(undefined); // ''
Returns the value if defined, otherwise an empty string.