toInteger
Converts a value to an integer by calling toNumber and truncating.
Usage
toInteger(value: unknown)
Converts a value to an integer by calling toNumber and truncating.
Parameters
valueunknownrequired
the value to convert.
Returns
the converted number truncated toward zero.