es.number.is-nan.js 281 B

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