source: frontend/node_modules/core-js-pure/internals/does-not-exceed-safe-integer.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 253 bytes
Line 
1'use strict';
2var $TypeError = TypeError;
3var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
4
5module.exports = function (it) {
6 if (it > MAX_SAFE_INTEGER) throw new $TypeError('Maximum allowed index exceeded');
7 return it;
8};
Note: See TracBrowser for help on using the repository browser.