UNPKG

iterama

Version:

Composable functional (async) iterable helpers

3 lines (2 loc) 225 B
export declare type TForEachFnAsync<T> = (value: T, i: number) => Promise<void> | void; export declare const forEachAsync: <T>(forEachFn: TForEachFnAsync<T>) => (iterable: AsyncIterable<T> | Iterable<T>) => AsyncIterable<T>;