isNil

Lang
since 4.0.0

Arguments

  • * The value to check.

Returns

boolean `true` if `value` is nullish, else `false`.

Checks if value is null or undefined.

Example of Lodash _.isNil

_.isNil(null);
// => true

_.isNil(void 0);
// => true

_.isNil(NaN);
// => false