isNaN.js 290 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 /** * ES6 Number.isNaN * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isNaN */ function isNaN(val){ // jshint eqeqeq:false return typeof val === 'number' && val != val; } module.exports = isNaN;