Number.isNaN() 方法确定传递的值是否为 NaN。
var res = Number.isNaN(value);
确定值是否为 NaN
如果值不是数字,则返回布尔值 true。
var res = Number.isNaN(10); console.log(res);