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