标签:es2015 instead style app code color col nbsp log
const result = Number(‘55px‘); // isNaN "NaN" console.log(isNaN(result)); // true console.log(isNaN(‘I am a String!‘)); // true -- NOT Good console.log(Number.NaN); // safer approach console.log(Number.isNaN(result)); // true console.log(Number.isNaN(‘I am another String!‘)); // false console.log(Number.isNaN(Number.NaN)); // true console.log(Number.isInteger(66)); // true
[ES2015] Number.isNaN instead of isNaN
标签:es2015 instead style app code color col nbsp log
原文地址:https://www.cnblogs.com/Answer1215/p/11047851.html