• Returns the elements in an async-iterable sequence with the maximum key value.

    Type Parameters

    • TSource

      The type of the elements in the source sequence.

    • TKey

      The type of the key computed for each element in the source sequence.

    Parameters

    • source: AsyncIterable<TSource>

      An async-iterable sequence to get the maximum elements for.

    • Optional options: ExtremaOptions<TSource, TKey>

      The options which include an optional comparer and abort signal.

    Returns Promise<TSource[]>

    A promise containing a list of zero or more elements that have a maximum key value.

Generated using TypeDoc