Function map

  • AsyncUtils.map, mapping values with async iteratee functions

    Type Parameters

    • T extends any[] | []

    Parameters

    • collection: T

    Returns Promise<Tuple<T>>

    Author

    Theo Sun

    Since

    5.18.0

  • Type Parameters

    • T

    • R = any

    Parameters

    • collection: ArrayLike<T>
    • Optional iteratee: ArrayIteratee<T, Promise<R>>
      Optional

    Returns Promise<R[]>

  • Type Parameters

    • T

    • R = any

    Parameters

    • collection: Record<string, T>
    • Optional iteratee: RecordIteratee<T, Promise<R>>
      Optional

    Returns Promise<R[]>

  • Parameters

    • collection: any
    • Optional iteratee: any
      Optional

    Returns Promise<any[]>