npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

apr-times

3.0.3 • Public • Published

times

Calls the iteratee function n times, and accumulates results in the same manner you would use with map.

Parameters

Examples

import times from 'apr-times';
 
const then = (v) => new Promise((resolve) => resolve(v));
 
const res = await times(6, async (i) =>
  await then(i);
);
 
// res = [0, 1, 2, 3, 4, 5]

Returns Promise

series

Parameters

Returns Promise

limit

Parameters

Returns Promise

install

npm i apr-times

Downloadsweekly downloads

13

version

3.0.3

license

MIT

homepage

apr.js.org

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability