Testing the isFinite
function I see that NaN
is an infinite number (even if it\'s not a number :-)
).
As Dave Newton said, NaN is not a number, and then you have to consider that it isn't finite nor infinite. The same occurs to these:
NaN > 0 // false
NaN < 0 // false
You might want to read these articles: