SyntaxFix
Write A Post
Hire A Developer
Questions
You can check for NaN by using var != var. NaN does not equal NaN.
var != var
NaN
EDIT: This is probably by far the worst method. It's confusing, terrible for readability, and overall bad practice.