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-every with all npm packages installed. Try it out:

var aprEvery = require("apr-every")

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

apr-every v3.0.3

Returns true if every element in coll satisfies an async test.

every

Returns true if every element in coll satisfies an async test.

Parameters

Examples

import awaitify from 'apr-awaitify';
import every from 'apr-every';

const access = awaitify(fs.access);
const files = [
  'file1',
  'file2',
  'file3'
];

const allExist = await every(files, async (file) =>
  await access(file)
);

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