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
/
modules
/
es.math.trunc.js
1
var $ = require('../internals/export');
2
3
var ceil = Math.ceil;
4
var floor = Math.floor;
5
6
// `Math.trunc` method
7
// https://tc39.es/ecma262/#sec-math.trunc
8
$({ target: 'Math', stat: true }, {
9
trunc: function trunc(it) {
10
return (it > 0 ? floor : ceil)(it);
11
}
12
});