_.isSafeInteger(value)
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.
Arguments
value (*): The value to check.
Returns
(boolean): Returns true if value is a safe integer, else false.
Example
MDN
he Number.isSafeInteger() static method determines whether the provided value is a number that is a safe integer.