You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
294 B
JavaScript
11 lines
294 B
JavaScript
6 years ago
|
// 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;
|
||
|
}
|
||
|
});
|