isNaN.js 303 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 define(function () { /** * 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; } return isNaN; });