source: trip-planner-front/node_modules/core-js/internals/is-integer.js@ 76712b2

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

initial commit

  • Property mode set to 100644
File size: 274 bytes
Line 
1var isObject = require('../internals/is-object');
2
3var floor = Math.floor;
4
5// `Number.isInteger` method implementation
6// https://tc39.es/ecma262/#sec-number.isinteger
7module.exports = function isInteger(it) {
8 return !isObject(it) && isFinite(it) && floor(it) === it;
9};
Note: See TracBrowser for help on using the repository browser.