• Computes the sum of a sequence of values.

    Parameters

    • source: Iterable<number>

      A sequence of values to calculate the sum.

    • Optional options: MathOptions<number>

      Optional options for providing a selector, thisArg and abort signal.

    Returns number

    A promise containing the sum of the sequence of values.

  • Computes the sum of a sequence of values.

    Type Parameters

    • T

      The type of values in the source sequence.

    Parameters

    • source: Iterable<T>

      A sequence of values to calculate the sum.

    • Optional options: MathOptions<T>

      Optional options for providing a selector, thisArg and abort signal.

    Returns number

    A promise containing the sum of the sequence of values.

Generated using TypeDoc