Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FilterIterator<T>

Type parameters

  • T

Hierarchy

  • FilterIterator

Implements

  • Iterator<T>

Index

Constructors

Properties

Methods

Constructors

constructor

  • new FilterIterator(source: Iterator<T>, predicate: function): FilterIterator
  • Parameters

    • source: Iterator<T>
    • predicate: function
        • (element: T): boolean
        • Parameters

          • element: T

          Returns boolean

    Returns FilterIterator

Properties

Private predicate

predicate: function

Type declaration

    • (element: T): boolean
    • Parameters

      • element: T

      Returns boolean

Private source

source: Iterator<T>

Methods

next

  • next(): IteratorResult<T>

Generated using TypeDoc