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

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

install

npm i apr-map

Downloadsweekly downloads

78

version

3.0.3

license

MIT

homepage

apr.js.org

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability