source:
trip-planner-front/node_modules/core-js/internals/to-positive-integer.js@
ceaed42
Last change on this file since ceaed42 was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 209 bytes |
Rev | Line | |
---|---|---|
[6a3a178] | 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.