projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
.gitignore added
[dotfiles/.git]
/
.config
/
coc
/
extensions
/
node_modules
/
coc-prettier
/
node_modules
/
core-js
/
internals
/
to-positive-integer.js
1
var toInteger = require('../internals/to-integer');
2
3
module.exports = function (it) {
4
var result = toInteger(it);
5
if (result < 0) throw RangeError("The argument can't be less than 0");
6
return result;
7
};