es.number.is-nan.js 281 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 var $ = require('../internals/export'); // `Number.isNaN` method // https://tc39.es/ecma262/#sec-number.isnan $({ target: 'Number', stat: true }, { isNaN: function isNaN(number) { // eslint-disable-next-line no-self-compare -- NaN check return number != number; } });