Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OfTypeIterator<T, TOfType>

Type Parameters

  • T

  • TOfType extends T

Hierarchy

  • OfTypeIterator

Implements

  • IterableIterator<TOfType>

Index

Constructors

Methods

Constructors

  • new OfTypeIterator<T, TOfType>(iterator: Iterator<T, any, undefined>, predicate: ((item: T) => item is TOfType)): OfTypeIterator<T, TOfType>
  • Type Parameters

    • T

    • TOfType

    Parameters

    • iterator: Iterator<T, any, undefined>
    • predicate: ((item: T) => item is TOfType)
        • (item: T): item is TOfType
        • Parameters

          • item: T

          Returns item is TOfType

    Returns OfTypeIterator<T, TOfType>

Methods

  • [iterator](): IterableIterator<TOfType>
  • next(): IteratorResult<TOfType, any>

Generated using TypeDoc