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