JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 776
  • Score
    100M100P100Q101334F
  • License MIT

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

Package Exports

  • apr-find

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (apr-find) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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