isNaN source npm

_.isNaN(value)

Checks if value is NaN.

Note: This method is not the same as isNaN which returns true for undefined and other non-numeric values.

Arguments

  1. value (*)

    The value to check.

Returns (boolean)

Returns true if value is NaN, else false.

Example

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

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

isNaN(undefined);
// => true

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