Archived
1
0

First commit

This commit is contained in:
Sean Edmunds
2021-12-13 17:00:40 -06:00
commit 0584430b5c
36617 changed files with 4676695 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
var global = require('../internals/global');
var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');
var RangeError = global.RangeError;
module.exports = function (it) {
var result = toIntegerOrInfinity(it);
if (result < 0) throw RangeError("The argument can't be less than 0");
return result;
};