Filter array elements with Promises
npm install node-filter-async


Filter array elements with Promises, zero dependencies, written in TypeScript.
``bash`
npm i node-filter-async
`javascript`
filterAsync
// The array to be filtered.
array: T[],
// The async filter callback.
callback: (value: T, index: number) => Promise
): Promise
Example:
`js
import filterAsync from 'node-filter-async';
(async () => {
const results = await filterAsync(someArray, async (value, index) => {
console.log(filtering [${index}]: ${value});``
return (await asyncFunc(value)) === 'blablabla';
});
})();