lazzy.ts
Version:
Fast and lightweight library for lazy operations with iterable objects.
4 lines • 406 B
TypeScript
import { PromiseValue } from "../common";
export declare function forEach<T, R, N>(iterator: Iterator<T, R, N>, action: (v: T, i: number) => void): Generator<T, R, undefined>;
export declare function forEachAsync<T, R, N>(iterator: AsyncIterator<T, R, N>, action: (v: PromiseValue<T>, i: number) => void | Promise<void>): AsyncGenerator<PromiseValue<T>, R, undefined>;
//# sourceMappingURL=forEach.d.ts.map