fishbird
Version:
Fishbird is a simple, lightweight, and fast Promise utility library
11 lines (7 loc) • 332 B
TypeScript
import { Options } from './types.js';
/**
* Promise.map(arr, fn, concurrency) in Bluebird
* code take from caolan/async
*/
declare function map<IN, OUT = Awaited<IN>>(arr: IN[], fn?: (item: Awaited<IN>, index?: number, array?: IN[]) => OUT, { concurrency }?: Options): Promise<Awaited<OUT>[]>;
export { map as default, map };