• Computes the sum of a sequence of values.

    Parameters

    • source: AsyncIterable<number>

      A sequence of values to calculate the sum.

    • Optional options: MathOptions<number>

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

    Returns Promise<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: AsyncIterable<T>

      A sequence of values to calculate the sum.

    • Optional options: MathOptions<T>

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

    Returns Promise<number>

    A promise containing the sum of the sequence of values.

Generated using TypeDoc