apr-map

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

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
apr-map
75673.0.35 years ago6 years agoMinified + gzip package size for apr-map in KB

Readme

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
Function
Returns Promise

limit

Parameters
Number
  • iteratee
  • Function
    Returns Promise