projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
minimal adjustments
[dotfiles/.git]
/
.config
/
coc
/
extensions
/
node_modules
/
coc-prettier
/
node_modules
/
core-js
/
internals
/
to-integer.js
1
var ceil = Math.ceil;
2
var floor = Math.floor;
3
4
// `ToInteger` abstract operation
5
// https://tc39.es/ecma262/#sec-tointeger
6
module.exports = function (argument) {
7
return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
8
};