News for hackers. Stuff that matters.
Re:NaN does not mean "I am not a number” by dragonwriter on Thursday July 10, 2014 @10:10PM (#8018536)
> Its confusing because NaN explicitly states not a number. Then the function explicitly states is number.

The problem is that "Number" is the name of a JS data type, and "number" is the name of a concept, the two don't match exactly, and when you are using camel-casing for word separation, you can't distinguish the two.

The function "isNumber" checks if the thing it is applied to is a JS Number, not if it is a number.

There are no comments on this comment yet.