Files
ETB/ETB-FrontEnd/node_modules/core-js/internals/does-not-exceed-safe-integer.js
Iliyan Angelov 306b20e24a Frontend start
2025-09-14 00:54:48 +03:00

9 lines
249 B
JavaScript

'use strict';
var $TypeError = TypeError;
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
module.exports = function (it) {
if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
return it;
};