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