Function reduceTruthy

  • Reduce the array into a single boolean value for if the check function returns true.

    once the first false is encountered check is not run again

    Returns

    true if check only ever returned true, otherwise false

    Type Parameters

    • T

    Parameters

    • array: T[]

      The array to test

    • check: ((entry: T, i: number) => boolean)

      The function to check the array entries with

        • (entry: T, i: number): boolean
        • Parameters

          • entry: T
          • i: number

          Returns boolean

    Returns boolean

Generated using TypeDoc