How to test variable for NaN value in JavaScript?
variable==NaN does not work, it returns false.
Answers
Discussion
isNaN(NaN) -> true
isNaN(1) -> false
varaiable != variable
This expression is True for NaN value and False for all other values.