Files
hackathon-v-escape-4ff8b5a6…/frontend/node_modules/is-nan/shim.js
marianesaldana 80dbd947e5 Initial commit
2026-05-23 08:59:34 -06:00

17 lines
387 B
JavaScript

'use strict';
var define = require('define-properties');
var getPolyfill = require('./polyfill');
/* http://www.ecma-international.org/ecma-262/6.0/#sec-number.isnan */
module.exports = function shimNumberIsNaN() {
var polyfill = getPolyfill();
define(Number, { isNaN: polyfill }, {
isNaN: function testIsNaN() {
return Number.isNaN !== polyfill;
}
});
return polyfill;
};