• Beta

    Returns the [pass, fail] results of an array using a filter

    Type Parameters

    • T

      ElementArray.

    Parameters

    • array: T[]

      The array to consume

    • filter: ((element, index, array) => boolean)

      The filter to use on the array

        • (element, index, array): boolean
        • Parameters

          • element: T
          • index: number
          • array: T[]

          Returns boolean

    Returns T[][]

    An array [pass, fail]

    Remarks

    This method is part of the Arrays Methods.

Generated using TypeDoc