2 ms·
But none of those things you listed are numbers. The isNaN output is exactly what I want in pretty much every case.
by jaywalk 4y ago
But none of those things you listed are numbers. The isNaN output is exactly what I want in pretty much every case.
- jefftk 4y agoisNaN does not tell you whether something is not a Number either. Applying isNaN to any of these returns false: null, true, false, [], "", "cabbage".
- dr-detroit 4y ago