Lang
Tosafeinteger

_.toSafeInteger(value)

Converts value to a safe integer. A safe integer can be compared and represented correctly.

Arguments

value (*): The value to convert.

Returns

(number): Returns the converted integer.

Example

Deep