UNPKG

fishbird

Version:

Fishbird is a simple, lightweight, and fast Promise utility library

11 lines (7 loc) 333 B
import { Options } from './types.cjs'; /** * 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 };