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
trueiffvalueis equivalent toNaN.Always use this function for comparisons involving
NaNinstead 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 becomeNaNwhen coerced to a number.Equivalent to built-in
Number.isNaN(value).