Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

apr-filter

3.0.3 • Public • Published

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

install

npm i apr-filter

Downloadsweekly downloads

2

version

3.0.3

license

MIT

homepage

apr.js.org

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability