source: trip-planner-front/node_modules/core-js/modules/es.number.is-safe-integer.js

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

initial commit

  • Property mode set to 100644
File size: 361 bytes
Line 
1var $ = require('../internals/export');
2var isInteger = require('../internals/is-integer');
3
4var abs = Math.abs;
5
6// `Number.isSafeInteger` method
7// https://tc39.es/ecma262/#sec-number.issafeinteger
8$({ target: 'Number', stat: true }, {
9 isSafeInteger: function isSafeInteger(number) {
10 return isInteger(number) && abs(number) <= 0x1FFFFFFFFFFFFF;
11 }
12});
Note: See TracBrowser for help on using the repository browser.