Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including apr-times with all npm packages installed. Try it out:

var aprTimes = require("apr-times")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

apr-times v3.0.3

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

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

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free