@mudssky/jsutils
    Preparing search index...

    Function boil

    • Go through a list of items, starting with the first item, and comparing with the second. Keep the one you want then compare that to the next item in the list with the same

      Ex. const greatest = () => boil(numbers, (a, b) => a > b)

      Type Parameters

      • T

      Parameters

      • array: readonly T[]
      • compareFunc: (a: T, b: T) => T

      Returns null | T