The type of elements in the input array
The array of elements to filter.
The asynchronous predicate function
that will be executed for each element. Should return true to include the element, false to exclude it.
Optionaloptions: { concurrency?: number; signal?: AbortSignal } = {}Optional configuration
Optionalconcurrency?: numberMaximum number of concurrent operations
Optionalsignal?: AbortSignalAbortSignal to cancel processing.
A Promise that resolves to the filtered array.
Asynchronously filters an array based on an asynchronous predicate function. Only elements for which the predicate returns
trueare included in the result. Rejects on the first error.For collecting errors instead of failing fast, use asyncFilterSettled.