apr-filter
v3.0.3
Published
Returns a new array of all the values in coll which pass an async truth test.
Downloads
510
Maintainers
Readme
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