• Subtracts a list of numbers from a given number.

    Returns

    The result of subtracting all the numbers from the initial number.

    Throws

    An error if the from parameter is not a valid number or if the numbers parameter is an empty array.

    Parameters

    • from: number

      The initial number to subtract from.

    • Rest ...numbers: [x: number, ...more: number[]]

      A list of numbers to subtract from the initial number.

    Returns number

Generated using TypeDoc