Checks if the given value is NaN. The difference with the native isNaN function is that this will not return true for strings or other types and only for the NaN value, the only value that doesn't equals itself.
isNaN
isNan(NaN); // true isNan('not NaN'); // false isNan(null); // false
The value to check.
Whether the value is NaN.
Generated using TypeDoc
Checks if the given value is NaN. The difference with the native
isNaN
function is that this will not return true for strings or other types and only for the NaN value, the only value that doesn't equals itself.isNan(NaN); // true isNan('not NaN'); // false isNan(null); // false