apr-some

3.0.3 • Public • Published

some

Returns true if at least one element in the coll satisfies an async test.

Parameters

Examples

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

Returns Promise

series

Parameters

Returns Promise

limit

Parameters

Returns Promise

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.0.3
    1
    • latest

Version History

Package Sidebar

Install

npm i apr-some

Weekly Downloads

1

Version

3.0.3

License

MIT

Last publish

Collaborators

  • ramitos