Y
Hacker News
new
|
ask
|
show
|
jobs
by
fmihaila
3246 days ago
NaN is not a name for one thing. You could think of
not a number
as
not any particular thing
. There is no comparison with itself, because there is no
it
.
2 comments
goatlover
3246 days ago
How is isNaN() implemented?
link
Gaelan
3246 days ago
function isNaN(x) { return x !== x }
It’s a native browser function so it may not actually be done that way, but that’s one way you
could
do it.
link
tambourine_man
3246 days ago
We really are deep in the realm of Philosophy.
link