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);// => true_.isNil(void 0);// => true_.isNil(NaN);// => false Copy
_.isNil(null);// => true_.isNil(void 0);// => true_.isNil(NaN);// => false
Checks if
value
isnull
orundefined
.