Type Alias NarrowingPredicate<T, U>

NarrowingPredicate: (
    element: T,
    index: number,
    array: AnyArray<T>,
) => element is U

Type Parameters

  • T
  • U extends T

Type declaration

    • (element: T, index: number, array: AnyArray<T>): element is U
    • Parameters

      Returns element is U