Number.isNaN() returns true if a value is NaN and of datatype Number, otherwise false.
Number.isNaN() is not supported in Internet Explorer 11 or earlier.