projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
2e42563b60983eaa0dc38d90662419722849a15c
[yaffs-website]
/
modules
/
es6.math.trunc.js
1
// 20.2.2.34 Math.trunc(x)
2
var $export = require('./_export');
3
4
$export($export.S, 'Math', {
5
trunc: function trunc(it){
6
return (it > 0 ? Math.floor : Math.ceil)(it);
7
}
8
});