reduce
Reduce this stream to a single value.
Return
The reduced value.
Parameters
op
The reduction operation.
Reduce this stream to a single value.
Return
The reduced value.
Parameters
op
The reduction operation.
initial
The initial value.
Reduce this stream to a single value.
Return
The reduced value.
Parameters
op
The reduction operation.
initial
The initial value.
options
The options for the reduce operation.
Reduce this stream to a single value.
Return
The reduced value.
Parameters
initial
The initial value.
op
The reduction operation.
abstract fun reduce(initial: Value, options: ReadableReduceOptions, op: () -> Value): JsPromise<Value>
Reduce this stream to a single value.
Return
The reduced value.
Parameters
initial
The initial value.
op
The reduction operation.
options
The options for the reduce operation.