Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
benchloftbrunch
· 1y ago · 0 comments
Also, NaN is the
only
value in JS that isn't === to itself, so if for some reason you want to test for strict value identity with the value NaN of type number, that's one way to do it:
if(x !== x) ... // x is NaN
Comments
No comments yet.
Better HN