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

apr-for-each

3.0.3 • Public • Published

for-each

Applies the function iteratee to each item in coll, in parallel.

Parameters

Examples

import awaitify from 'apr-awaitify';
import forEach from 'apr-for-each';
 
const writeFile = awaitify(fs.writeFile);
const files = [
  '/home/.vimrc',
  '/home/.zshrc'
];
 
await forEach(files, async (file) =>
  await writeFile(file, 'boom')
);

Returns Promise

series

Parameters

Returns Promise

limit

Parameters

Returns Promise

install

npm i apr-for-each

Downloadsweekly downloads

55

version

3.0.3

license

MIT

homepage

apr.js.org

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability