• Find the thing of a list with the biggest value also works with generators.

    Type Parameters

    • T

    Parameters

    • ts: Iterable<T>

      list of things

    • map: ((t) => number)

      function to convert a thing to number

        • (t): number
        • Parameters

          • t: T

          Returns number

    • minE: number = Number.NEGATIVE_INFINITY

      optional: exclusive minimum value to accept

    Returns T | undefined

    the thing will the biggest value or undefined if none are superior to minE

Generated using TypeDoc