Skip to content

Comment on Speaking JavaScriptparent

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()

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.