apr-find

3.0.3 • Public • Published

find

Returns the first value in coll that passes an async truth test.

Parameters

Examples

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

Returns Promise

series

Parameters

Returns Promise

limit

Parameters

Returns Promise

install

npm i apr-find

Downloadsweekly downloads

2

version

3.0.3

license

MIT

homepage

apr.js.org

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability