securityos/node_modules/core-js/modules/es6.number.is-safe-integer.js

11 lines
294 B
JavaScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
// 20.1.2.5 Number.isSafeInteger(number)
var $export = require('./_export');
var isInteger = require('./_is-integer');
var abs = Math.abs;
$export($export.S, 'Number', {
isSafeInteger: function isSafeInteger(number) {
return isInteger(number) && abs(number) <= 0x1fffffffffffff;
}
});