lazzy.ts
Version:
Fast and lightweight library for lazy operations with iterable objects.
3 lines • 331 B
TypeScript
export declare function indexOf<T, R, N>(iterator: Iterator<T, R, N>, predicate: (value: T, index: number) => boolean): number;
export declare function indexOfAsync<T, R, N>(iterator: AsyncIterator<T, R, N>, predicate: (value: T, index: number) => boolean | Promise<boolean>): Promise<number>;
//# sourceMappingURL=indexOf.d.ts.map