SyntaxFix
Write A Post
Hire A Developer
Questions
The best way to do it I think is:
if(val != true){ //do something }
This will be true if val is false, NaN, or undefined.