isNaN

Lang
since 0.1.0

Arguments

  • * The value to check.

Returns

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

Checks if value is NaN.

Note: This method is based on Number.isNaN and is not the same as global isNaN which returns true for undefined and other non-number values.

Example of Lodash _.isNaN

_.isNaN(NaN);
// => true

_.isNaN(new Number(NaN));
// => true

isNaN(undefined);
// => true

_.isNaN(undefined);
// => false