Checks if a value is Falsy
value
The opposite of isTruthy
const result = isFalsy(0);console.log(result); // true
const result = isFalsy(null);console.log(result); // true
const result = isFalsy(1);console.log(result); // false
const result = isFalsy(" ");console.log(result); // false
true if value is Falsy, otherwise false
true
false
the value to check
Generated using TypeDoc
Checks if a
valueis FalsyThe opposite of isTruthy
Example
Example
Example
Example
Returns
trueifvalueis Falsy, otherwisefalse