Number.is_nan
is_nan
Group: Math
Documentation
Checks if the given number is the floating-point Not-a-Number value. This is needed, because the NaN value will return False
even when being compared with itself, so x == Number.nan
would not work.