Function sum

  • Compute the sum of the given numbers.

    Parameters

    • Rest ...numbers: number[]

      The numbers to sum.

    Returns number

    The sum of the numbers.

    Example

    sum(1, 2, 3, 4, 5);
    // => 15

Generated using TypeDoc