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

main
Last change on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 249 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 $TypeError('Maximum allowed index exceeded');
7 return it;
8};
Note: See TracBrowser for help on using the repository browser.