es6.math.trunc.js 181 B

12345678
  1. // 20.2.2.34 Math.trunc(x)
  2. var $export = require('./_export');
  3. $export($export.S, 'Math', {
  4. trunc: function trunc(it) {
  5. return (it > 0 ? Math.floor : Math.ceil)(it);
  6. }
  7. });