NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/core-js-pure/internals/to-positive-integer.js
2023-09-14 14:47:11 +08:00

8 lines
209 B
Java

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;
};