Async filter version of Array.prototype.filter(), with the same signature as its synchronous counterpart.
The type of the array
The iterable to filter
The predicate function
A promise that resolves to the filtered array
asyncFilter([1, 2, 3], (item) => Promise.resolve(item % 2 === 0)); // [2] Copy
asyncFilter([1, 2, 3], (item) => Promise.resolve(item % 2 === 0)); // [2]
v0.3.7
Async filter version of Array.prototype.filter(), with the same signature as its synchronous counterpart.