batch-iterable
Version:
An abstraction to work with iterables of asyncIterables
12 lines (11 loc) • 349 B
TypeScript
/**
* @template T
* @param {AsyncIterable<Iterable<T>>} iterable
* @param {(item: T, index: number) => boolean} predicate
* @returns {Promise<T| undefined>}
*/
export default function find<T>(
iterable: AsyncIterable<Iterable<T>>,
predicate: (item: T, index: number) => boolean,
): Promise<T | undefined>
//# sourceMappingURL=find.d.ts.map