source: trip-planner-front/node_modules/core-js/internals/to-positive-integer.js@ 76712b2

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

initial commit

  • Property mode set to 100644
File size: 209 bytes
Line 
1var toInteger = require('../internals/to-integer');
2
3module.exports = function (it) {
4 var result = toInteger(it);
5 if (result < 0) throw RangeError("The argument can't be less than 0");
6 return result;
7};
Note: See TracBrowser for help on using the repository browser.