source:
trip-planner-front/node_modules/core-js/internals/to-positive-integer.js@
1ad8e64
Last change on this file since 1ad8e64 was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 209 bytes |
Line | |
---|---|
1 | var toInteger = require('../internals/to-integer'); |
2 | |
3 | module.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.