mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
13 lines
368 B
JavaScript
13 lines
368 B
JavaScript
var $ = require('../internals/export');
|
|
var isInteger = require('../internals/is-integer');
|
|
|
|
var abs = Math.abs;
|
|
|
|
// `Number.isSafeInteger` method
|
|
// https://tc39.github.io/ecma262/#sec-number.issafeinteger
|
|
$({ target: 'Number', stat: true }, {
|
|
isSafeInteger: function isSafeInteger(number) {
|
|
return isInteger(number) && abs(number) <= 0x1FFFFFFFFFFFFF;
|
|
}
|
|
});
|