Number.isSafeInteger
isSafeInteger – Check whether an integer is in the safe range.
Description
Number.isSafeInteger(integer integer)
Parameters
Name | Description | Type | Default | Optional |
---|---|---|---|---|
integer | integer | No |
Return values
boolean.
Changelog
Version | Description |
---|---|
ES 6 | Introduced. |
Examples
Example #1 – isSafeInteger example