UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

13 lines (12 loc) 380 B
import type { AsyncFunction } from "../types"; /** * AsyncUtils.filter, filter values by async predicate function * * @author Theo Sun * @since 5.18.0 * @category Async * @param collection * @param predicate async predicate * @returns */ export declare function filter<T extends any>(collection: Array<T>, predicate: AsyncFunction<[T, any, any], boolean>): Promise<T[]>;