Hacker News new | ask | show | jobs
by jaywalk 1497 days ago
But none of those things you listed are numbers. The isNaN output is exactly what I want in pretty much every case.
1 comments

isNaN does not tell you whether something is not a Number either. Applying isNaN to any of these returns false: null, true, false, [], "", "cabbage".