UNPKG

async-ray

Version:

Allow perform every, filter, find, findIndex, forEach, map, reduce, reduceRight and some on array using Async callback

13 lines (12 loc) 367 B
/** returns boolean */ export declare type CallBackEvery<T> = (value: T, index?: number, collection?: T[]) => Promise<boolean>; /** * Async Every function * * @export * @template T * @param {T[]} elements * @param {CallBackEvery<T>} cb * @returns {Promise<boolean>} */ export declare function aEvery<T>(elements: T[], cb: CallBackEvery<T>): Promise<boolean>;