Always use this function for comparisons involving NaN instead of == or
===, because those operators always return false if one of the operands is
NaN.
Non number-like values will always return false, even if those values
ordinarily become NaN when coerced to a number.
Returns
true
iffvalue
is equivalent toNaN
.Always use this function for comparisons involving
NaN
instead of==
or===
, because those operators always return false if one of the operands isNaN
.Non number-like values will always return
false
, even if those values ordinarily becomeNaN
when coerced to a number.Equivalent to built-in
Number.isNaN(value)
.