UNPKG

iteragain

Version:

Javascript Iterable/Iterator/Generator-function utilities.

10 lines 490 B
/** Tap into the values of an iterator. `func` does not modify values passed to it as it's return value is unused. */ export declare class TapIterator<T> implements IterableIterator<T> { protected iterator: Iterator<T>; protected func: (value: T) => any; constructor(iterator: Iterator<T>, func: (value: T) => any); [Symbol.iterator](): IterableIterator<T>; next(...args: any[]): IteratorResult<T>; } export default TapIterator; //# sourceMappingURL=TapIterator.d.ts.map