Use SeekableIterator instead.

Caches the values of the input iterator into a Map.

Type Parameters

  • T

Implements

  • IterableIterator<T>

Constructors

Properties

Methods

Constructors

Properties

cache: Map<number, T> = ...
done: boolean = false
i: number = 0
iterator: Iterator<T, any, any>

Methods

  • Returns IterableIterator<T, any, any>

  • Parameters

    • Rest...args: any[]

    Returns IteratorResult<T, any>