The type of elements in the array / 数组元素的类型
A promise that resolves to the filtered array. 解析为过滤后数组的Promise
Predicates are executed concurrently via promiseParallel under the hood.
The results maintain the original array order regardless of the order in which predicates resolve.
The concurrency parameter controls the maximum number of simultaneously pending operations.
谓词函数通过底层的promiseParallel并发执行。
无论谓词函数解析的顺序如何,结果都保持原始数组的顺序。
concurrency参数控制同时进行中的最大操作数。
mapAsync — for async transformation / 异步转换
Filters an array asynchronously using an async predicate function.
Returns a promise that resolves to a new array containing only the elements for which the predicate function returns a truthy value.
使用异步谓词函数对数组进行异步过滤。
返回一个Promise,该Promise解析为一个新数组,仅包含谓词函数返回真值的元素。