Function maxBy

  • Returns the elements in an 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: Iterable<TSource>

      The source to get the maximum by.

    • Optional options: ExtremaOptions<TSource, TKey>

      The options which include an optional comparer.

    Returns TSource[]

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

Generated using TypeDoc