Comment on Speaking JavaScriptparentComments−acjohnson5512yThat's the canonical way to check for NaN, in fact.−chewxy12yNo. Use isNaN() instead. Or if you have ES6 support, Number.isNaN() is much better an implementation than window.isNaN()
Comments
That's the canonical way to check for NaN, in fact.
No. Use isNaN() instead. Or if you have ES6 support, Number.isNaN() is much better an implementation than window.isNaN()