source: trip-planner-front/node_modules/core-js/internals/to-length.js@ 1ad8e64

Last change on this file since 1ad8e64 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 297 bytes
Line 
1var toInteger = require('../internals/to-integer');
2
3var min = Math.min;
4
5// `ToLength` abstract operation
6// https://tc39.es/ecma262/#sec-tolength
7module.exports = function (argument) {
8 return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
9};
Note: See TracBrowser for help on using the repository browser.