source: node_modules/es-toolkit/dist/compat/util/toInteger.js@ a762898

Last change on this file since a762898 was a762898, checked in by istevanoska <ilinastevanoska@…>, 6 months ago

Added visualizations

  • Property mode set to 100644
File size: 326 bytes
RevLine 
[a762898]1'use strict';
2
3Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
5const toFinite = require('./toFinite.js');
6
7function toInteger(value) {
8 const finite = toFinite.toFinite(value);
9 const remainder = finite % 1;
10 return remainder ? finite - remainder : finite;
11}
12
13exports.toInteger = toInteger;
Note: See TracBrowser for help on using the repository browser.