4 ms·
Checks out. NaN === NaN // false
by jannes 7y ago
Checks out. NaN === NaN // false
- byte1918 7y agoNaN 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...
- deleted 7y ago[deleted]
- kazinator 7y agoRules 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.