Package Exports
- apr-reduce
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (apr-reduce) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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