• Convert the provided value to an integer

    Parameters

    • value: any

      The value to be converted to an integer.

    • Optional throwInfinity: boolean

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

    Returns number

    The value converted to an integer