Function reducio

  • Boolean reduction function. Takes a check function and an initial state.

    Uses a time-effecient method of only checking values that could change the result from the initial value.


    A boolean

    Type Parameters

    • T


    • array: T[]

      The array to reduce

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

      The function to run on each element. Must return a boolean.

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

          • entry: T
          • i: number

          Returns boolean

    • options: RedicioOptions = ...

      See ReducioOptions

    Returns boolean

Generated using TypeDoc