Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MapIterator<T, R>

An iterator that emits results by running each element through a provided predicate

Type parameters

  • T

  • R

Hierarchy

  • MapIterator

Implements

  • Iterator<R>

Index

Constructors

Properties

Methods

Constructors

constructor

  • new MapIterator(source: Iterator<T>, iteratee: function): MapIterator
  • Parameters

    • source: Iterator<T>
    • iteratee: function
        • (value: T): R
        • Parameters

          • value: T

          Returns R

    Returns MapIterator

Properties

Private iteratee

iteratee: function

Type declaration

    • (value: T): R
    • Parameters

      • value: T

      Returns R

Private source

source: Iterator<T>

Methods

next

  • next(): IteratorResult<R>
  • Returns IteratorResult<R>

Generated using TypeDoc