Checks if a value is not Nullish
value
The opposite of isNullish
const result = isNotNullish(0);console.log(result); // true
const result = isNotNullish(null);console.log(result); // false
const result = isNotNullish(undefined);console.log(result); // false
true if value is not Nullish, otherwise false
true
false
the value to check
Generated using TypeDoc
Checks if a
valueis not NullishThe opposite of isNullish
Example
Example
Example
Returns
trueifvalueis not Nullish, otherwisefalse