JSPM

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

Returns a new array of all the values in coll which pass an async truth test.

Package Exports

  • apr-filter

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-filter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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