• Computes the average of the async-iterable sequence.

    Parameters

    • source: AsyncIterable<number>

      The source async-iterable sequence to compute the average.

    • Optional options: MathOptions<number>

      The options for calculating the average.

    Returns Promise<number>

    A Promise which returns the computed average for the async-iterable sequence.

  • Computes the average of the async-iterable sequence.

    Type Parameters

    • TSource

      The type of elements in the source sequence.

    Parameters

    • source: AsyncIterable<TSource>

      source async-iterable sequence to compute the average.

    • Optional options: MathOptions<TSource>

      The options for calculating the average.

    Returns Promise<number>

    A Promise which returns the computed average for the async-iterable sequence.

Generated using TypeDoc