github-pages-deploy-action/node_modules/core-js-pure/internals/to-positive-integer.js
2020-03-06 22:45:40 -05:00

8 lines
209 B
JavaScript

var toInteger = require('../internals/to-integer');
module.exports = function (it) {
var result = toInteger(it);
if (result < 0) throw RangeError("The argument can't be less than 0");
return result;
};