isNaN
isNaN(x)
Test whether a value is NaN (not a number)
Try it yourself:
$1 | isNaN(2)
| |
$2 | isNaN(0 / 0)
| |
$3 | isNaN(NaN)
| |
$4 | isNaN(Infinity)
|
Test whether a value is NaN (not a number)
Try it yourself:
$1 | isNaN(2)
| |
$2 | isNaN(0 / 0)
| |
$3 | isNaN(NaN)
| |
$4 | isNaN(Infinity)
|