The isNaN () function is used to check if a value is not a number .
方法用于判断一个值是否为非数字类型。
If you want to compare a floating point value with NaN , use the Float . isNaN () method instead .
如果想将浮点值与NaN进行比较,则使用Float.isNaN()方法。