@reactivex/ix-esnext-esm
Version:
The Interactive Extensions for JavaScript
3 lines (2 loc) • 366 B
TypeScript
export declare function reduce<T, R = T>(source: AsyncIterable<T>, accumulator: (previousValue: R, currentValue: T, currentIndex: number) => R | Promise<R>, seed?: never[]): Promise<R>;
export declare function reduce<T, R = T>(source: AsyncIterable<T>, accumulator: (previousValue: R, currentValue: T, currentIndex: number) => R | Promise<R>, seed?: R): Promise<R>;