DEV Community

Discussion on: 20 Killer JavaScript One-Liners That’ll Save You Hours of Coding 🤯🔥

Collapse
 
uploadcare profile image
Uploadcare

The fact that NaN is a number is totally fine and is not related to the JS. It's due to IEEE-754.

However, isNaN is broken, that's true.

Read more:

Collapse
 
pcjmfranken profile image
Peter Franken

That is a very solid and comprehensive article! Whilst not new knowledge to me, I believe people who might not be as familiar with this subject should have no problems following along!

Thanks for sharing it here