@adamburgess/linq

    Function byMin_byMax_min_max

    • Finds the value of a sequence, or the value in the sequence, that is the min, or the max.

      Depending on the booleans at the end or if you pass a selector or not.

      Type Parameters

      • T

      Parameters

      • input: Iterable<T>
      • selector: undefined | ((arg: T) => number)
      • isMin: boolean
      • isBy: true

      Returns T

    • Finds the value of a sequence, or the value in the sequence, that is the min, or the max.

      Depending on the booleans at the end or if you pass a selector or not.

      Type Parameters

      • T

      Parameters

      • input: Iterable<T>
      • selector: undefined | ((arg: T) => number)
      • isMin: boolean
      • isBy: false

      Returns number

    MMNEPVFCICPMFPCPTTAAATR