|
|
|
|
|
by saagarjha
1569 days ago
|
|
> The only reliable way to test for NaN is to use a language-dependent built-in function; the expression a === NaN is always false Well, you test for it by comparing the value against itself and seeing if that returns false. (There’s also a bit of confusion on by value vs. by reference comparison and the actual bit value on a NaN, which isn’t quite right.) |
|