Function asyncMap

  • Runs Array.map asyncronously.

    Type Parameters

    • T

    • K

    Parameters

    • list: T[]

      The array to map

    • executor: ((element: T, index: number, array: T[]) => Promise<K>)

      The function to run for each

        • (element: T, index: number, array: T[]): Promise<K>
        • Parameters

          • element: T
          • index: number
          • array: T[]

          Returns Promise<K>

    Returns Promise<K[]>

Generated using TypeDoc