Re:Everything Isa (2014)
by jannes on Monday June 03, 2019 @06:37AM
(#20081858)
Checks out. NaN === NaN // false
[ Parent
| on HN ]
NaN is 'not a number'
A string is not a number
A function is not a number
If 'not a number' === 'not a number' then any string === any function
This is a joke...
Rules around NaN aren't Javascripts fault; it's IEEE floating-point idiocy that a given NaN doesn't compare equal to itself.
That is a corruption. It should never be the case that a thing is not itself.