mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
8 lines
209 B
JavaScript
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;
|
||
|
};
|