GoScrobble/web/node_modules/core-js-pure/modules/es.number.is-nan.js

11 lines
281 B
JavaScript
Raw Normal View History

2022-04-25 02:47:15 +00:00
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;
}
});