package.modules.es.number.is-nan.js Maven / Gradle / Ivy
'use strict';
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;
}
});
© 2015 - 2024 Weber Informatics LLC | Privacy Policy