You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which is extremely funny if you think about it. Interesting it hasn't been noticed until now, but its rather rare situation I suppose. And this project is dead. Unfortunately.
Object.isNumber(NaN) true
The text was updated successfully, but these errors were encountered:
Well, NaN is the value of a variable of type Number, that is "not a number".
It's not that it hasn't been noticed until now (see StackOverflow) — it's according to the specs (JS type Number is an IEEE 754 float.
Think, for example, of parseInt(input) as a function with a return value of type Number and with an input value that cannot be parsed as a numeric value.
The return value must be of type Number, but does not need to be of a numeric value, thus NaN.
Which is extremely funny if you think about it. Interesting it hasn't been noticed until now, but its rather rare situation I suppose. And this project is dead. Unfortunately.
Object.isNumber(NaN)
true
The text was updated successfully, but these errors were encountered: