Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

apr-reject

3.0.3 • Public • Published

reject

The opposite of filter. Removes values that pass an async truth test.

Parameters

Examples

import awaitify from 'apr-awaitify';
import reject from 'apr-reject';
 
const access = awaitify(fs.access);
const files = [
  'file1',
  'file2',
  'file3'
];
 
var missing = await reject(files, async (file) =>
  await access(file)
);

Returns Promise

series

Parameters

Returns Promise

limit

Parameters

Returns Promise

Install

npm i apr-reject

DownloadsWeekly Downloads

0

Version

3.0.3

License

MIT

Last publish

Collaborators

  • avatar