main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
397 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 | var $ = require('../internals/export');
|
---|
3 | var isIntegralNumber = require('../internals/is-integral-number');
|
---|
4 |
|
---|
5 | var abs = Math.abs;
|
---|
6 |
|
---|
7 | // `Number.isSafeInteger` method
|
---|
8 | // https://tc39.es/ecma262/#sec-number.issafeinteger
|
---|
9 | $({ target: 'Number', stat: true }, {
|
---|
10 | isSafeInteger: function isSafeInteger(number) {
|
---|
11 | return isIntegralNumber(number) && abs(number) <= 0x1FFFFFFFFFFFFF;
|
---|
12 | }
|
---|
13 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.