Function reduceFalsy

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

    once the first true is encountered check is not run again


    true if check only ever returned false, otherwise false

    Type Parameters

    • T


    • 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