lazzy.ts
Version:
Fast and lightweight library for lazy operations with iterable objects.
4 lines • 434 B
TypeScript
import { PromiseValue } from "../common";
export declare function filter<T, R, N>(iterator: Iterator<T, R, N>, predicate: (value: T, index: number) => boolean): Generator<T, R, undefined>;
export declare function filterAsync<T, R, N>(iterator: AsyncIterator<T, R, N>, predicate: (value: PromiseValue<T>, index: number) => boolean | Promise<boolean>): AsyncGenerator<PromiseValue<T>, R, undefined>;
//# sourceMappingURL=filter.d.ts.map