Files
est-frame/node_modules/core-js-pure/internals/not-a-nan.js
2025-10-22 05:38:27 +00:00

9 lines
215 B
JavaScript
Executable File

'use strict';
var $RangeError = RangeError;
module.exports = function (it) {
// eslint-disable-next-line no-self-compare -- NaN check
if (it === it) return it;
throw new $RangeError('NaN is not allowed');
};