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

10 lines
298 B
JavaScript
Raw Normal View History

2016-10-10 03:43:44 +02:00
// 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;
}
});