3.0.3 • Published 6 years ago

apr-some v3.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

some

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

npm.io npm.io

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

3.0.3

6 years ago

3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago