UNPKG
lightfold
Version:
latest (1.0.3)
1.0.3
1.0.2
1.0.1
1.0.0
lightweight scaffolding and archiving utility CLI.
github.com/andrew-x/Lightfold
andrew-x/Lightfold
lightfold
/
example
/
node_modules
/
core-js
/
internals
/
to-positive-integer.js
8 lines
(6 loc)
•
209 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
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; };