- filterAsync<T>(arrayLike, predicate, thisArg?): Promise<T[]>
Parameters
- arrayLike: MaybePromise<ArrayLike<T>>
- predicate: ((value: T, index: number, array: ArrayLike<T>) => Promise<boolean>)
- (value, index, array): Promise<boolean>
Parameters
- value: T
- index: number
- array: ArrayLike<T>
Returns Promise<boolean>
OptionalthisArg: any
Returns Promise<T[]>
Filter an ArrayLike with an asynchronous predicate.
Runs the predicate in parallel across all elements, then filters the elements by the booleans resolved by the predicate.