apr-reduce
v3.0.3
Published
Reduces coll into a single value using an async iteratee to return each successive step.
Downloads
4,784
Maintainers
Readme
reduce
Reduces coll
into a single value using an async iteratee
to return each successive step.
Parameters
Examples
import reduce from 'apr-reduce';
const sum = await reduce([1, 2, 3], async (sum, item) =>
new Promise((resolve) => resolve(sum + item))
);
Returns Promise