Checks if value is null or undefined.
value
null
undefined
The value to check.
Returns true if value is nullish, else false.
true
false
isNil(null)// => trueisNil(void 0)// => trueisNil(NaN)// => false Copy
isNil(null)// => trueisNil(void 0)// => trueisNil(NaN)// => false
Generated using TypeDoc
Checks if
value
isnull
orundefined
.