Other than creating a function, is there a shorter way to check if a value is undefined,null or false only in JavaScript?
undefined
null
false
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.