@pleisto/active-support
    Preparing search index...

    Variable boilConst

    boil: <T>(array: readonly T[], compareFunc: (a: T, b: T) => T) => T | null

    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 declaration

      • <T>(array: readonly T[], compareFunc: (a: T, b: T) => T): T | null
      • Type Parameters

        • T

        Parameters

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

        Returns T | null