apr-map

3.0.3 • Public • Published

map

Produces a new collection of values by mapping each value in coll through the iteratee function.

Parameters

Examples

import awaitify from 'apr-awaitify';
import map from 'apr-map';
 
const stat = awaitify(fs.stat);
const files = [
  'file1',
  'file2',
  'file3'
];
 
const stats = await map(files, async (file) =>
  await stat(file);
);

Returns Promise

series

Parameters

Returns Promise

limit

Parameters

Returns Promise

Dependencies (3)

Dev Dependencies (1)

Package Sidebar

Install

npm i apr-map

Weekly Downloads

644

Version

3.0.3

License

MIT

Last publish

Collaborators

  • ramitos