Type Alias ArrPredicateCallbackFn2<T>

ArrPredicateCallbackFn2<T>: ((value: T, index: number, array: T[]) => unknown)

The ArrPredicateCallbackFn2 function is used for arrEvery and arrFilter, it should return a truthy value to indicate a matching element has been found.

Type Parameters

  • T

    Identifies the type of array elements

Type declaration

    • (value, index, array): unknown
    • Parameters

      • value: T

        The cuirrent element of the array being processed.

      • index: number

        The index of the current elemety of the array being processed.

      • array: T[]

        The array being processed.

      Returns unknown

0.8.0