Type alias NarrowingPredicate<T, U>

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

Type Parameters

  • T

  • U extends T

Type declaration

    • (element, index, array): element is U
    • Parameters

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

      Returns element is U

Generated using TypeDoc