3.0.3 • Published 6 years ago

apr-map v3.0.3

Weekly downloads
560
License
MIT
Repository
github
Last release
6 years ago

map

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

npm.io npm.io

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