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

var aprFilter = require("apr-filter")

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

apr-filter v3.0.3

Returns a new array of all the values in coll which pass an async truth test.

filter

Returns a new array of all the values in coll which pass an async truth test.

Parameters

Examples

import awaitify from 'apr-awaitify';
import filter from 'apr-filter';

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

var existent = await filter(files, async (file) =>
  await access(file)
);

Returns Promise

series

Parameters

Returns Promise

limit

Parameters

Returns Promise

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