10 lines
300 B
JavaScript
10 lines
300 B
JavaScript
// 20.1.2.5 Number.isSafeInteger(number)
|
|
var $export = require('./$.export')
|
|
, isInteger = require('./$.is-integer')
|
|
, abs = Math.abs;
|
|
|
|
$export($export.S, 'Number', {
|
|
isSafeInteger: function isSafeInteger(number){
|
|
return isInteger(number) && abs(number) <= 0x1fffffffffffff;
|
|
}
|
|
}); |