3 ms·
isNaN() will return true for anything that can't be coerced into a number while !(x == x) will only be true for the NaN value itself.
by grayrest 17y ago
isNaN() will return true for anything that can't be coerced into a number while !(x == x) will only be true for the NaN value itself.