UNPKG

iteragain

Version:

Javascript Iterable/Iterator/Generator-function utilities.

6 lines 452 B
import type { Callback, IterSource, IteratorOrIterable } from './types'; /** Iterate an iterator using the `array.prototype.forEach` style of method. */ export declare function forEach<T extends IteratorOrIterable<any>>(arg: T, callback: Callback<IterSource<T>>): void; export declare function forEach<T extends IteratorOrIterable<any>>(callback: Callback<IterSource<T>>): (arg: T) => void; export default forEach; //# sourceMappingURL=forEach.d.ts.map