es.number.is-nan.js 296 B

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