Type alias IndexedPredicate<T>

IndexedPredicate<T>: ((x: T, i: number) => unknown)

Type Parameters

  • T

Type declaration

    • (x: T, i: number): unknown
    • Defines a predicate that takes a value x:T and number that represents the position of x in whichever sequence it is applied to and returns a truthy/falsy value, usually to signal inclusion in an output list

      Example

      {@link _filter}
      

      Parameters

      • x: T
      • i: number

      Returns unknown

Generated using TypeDoc