the type of record passed down by previous streams
the type of aggregation result
The reducer function used to aggregate items
Event emitter The defined events on documents including:
A utility method for creating Readable Streams out of iterators.
Generated using TypeDoc
A transform stream that reduces items using the provided function
Readable .from([1, 2, 3, 4]) .pipe(new Reduce((item: number, accumulator: number) => accumulator + item, 0)) .on("close", (chunks: number[]) => { console.log(chunks); // [10] });