2 ms·
That's the canonical way to check for NaN, in fact.
by acjohnson55 13y ago
That's the canonical way to check for NaN, in fact.
- chewxy 13y agoNo. Use isNaN() instead. Or if you have ES6 support, Number.isNaN() is much better an implementation than window.isNaN()