source: trip-planner-front/node_modules/core-js/modules/es.math.trunc.js@ 571e0df

Last change on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 268 bytes
Line 
1var $ = require('../internals/export');
2
3var ceil = Math.ceil;
4var 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});
Note: See TracBrowser for help on using the repository browser.