New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

apr-for-each

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apr-for-each

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

3.0.3
latest
Source
npm
Version published
Weekly downloads
424
-19.24%
Maintainers
1
Weekly downloads
 
Created
Source

for-each

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

Parameters

  • input (Array | Object | Iterable)
  • iteratee Function

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

Keywords

for-each

FAQs

Package last updated on 28 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts