• Convert the provided value to an integer

    Parameters

    • value: any

      The value to be converted to an integer.

    • OptionalthrowInfinity: boolean

      [Optional] Throws RangeError if value is Infinity, defaults to false

    Returns number

    The value converted to an integer