• Returns the maximum element with the optional selector.

    Type Parameters

    • TSource

      The type of the elements in the source sequence.

    • TResult = TSource

    Parameters

    • source: AsyncIterable<TSource>

      An async-iterable sequence to determine the maximum element of.

    • Optional options: ExtremaOptions<TSource, TResult>

      The options which include an optional comparer and abort signal.

    Returns Promise<TResult>

    The maximum element.

Generated using TypeDoc