source: trip-planner-front/node_modules/core-js/internals/to-integer.js@ e29cc2e

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

initial commit

  • Property mode set to 100644
File size: 249 bytes
Line 
1var ceil = Math.ceil;
2var floor = Math.floor;
3
4// `ToInteger` abstract operation
5// https://tc39.es/ecma262/#sec-tointeger
6module.exports = function (argument) {
7 return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
8};
Note: See TracBrowser for help on using the repository browser.