• Performs an asynchronous operation sequentially on all elements of an array

    Type Parameters

    • T
    • R

    Parameters

    • array: readonly T[]
    • action: ((item: T, index: number, arr: readonly T[], results: readonly R[]) => Promise<R>)
        • (item, index, arr, results): Promise<R>
        • Parameters

          • item: T
          • index: number
          • arr: readonly T[]
          • results: readonly R[]

          Returns Promise<R>

    Returns Promise<R[]>