1 contributor
Like
Install is-safe-integer as a package?
Copied
npm i @bit/lodash.lodash.is-safe-integer
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
chevron_left
chevron_right
isSafeInteger (
value:
) : *
boolean
Checks if value
is a safe integer. An integer is safe if it’s an IEEE-754
double precision number which isn’t the result of a rounded unsafe integer.
Note: This method is based on
Number.isSafeInteger
.
Example
Argument
value:
*
The value to check.
Returns
boolean
Returns `true` if `value` is a safe integer, else `false`.