Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

apr-reduce

3.0.3 • Public • Published

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

install

npm i apr-reduce

Downloadsweekly downloads

63

version

3.0.3

license

MIT

homepage

apr.js.org

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability