Options
All
  • Public
  • Public/Protected
  • All
Menu

Module async/map

Index

Functions Async

Async Functions

  • map<T>(collection: T): Promise<Tuple<T>>
  • map<T, R>(collection: ArrayLike<T>, iteratee?: ArrayIteratee<T, Promise<R>>): Promise<R[]>
  • map<T, R>(collection: Record<string, T>, iteratee?: RecordIteratee<T, Promise<R>>): Promise<R[]>
  • map(collection: any, iteratee?: any): Promise<any[]>
  • AsyncUtils.map, mapping values with async iteratee functions

    author

    Theo Sun

    since

    5.18.0

    Type Parameters

    • T extends any[] | []

    Parameters

    • collection: T

    Returns Promise<Tuple<T>>

  • Type Parameters

    • T

    • R = any

    Parameters

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

    Returns Promise<R[]>

  • Type Parameters

    • T

    • R = any

    Parameters

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

    Returns Promise<R[]>

  • Parameters

    • collection: any
    • Optional iteratee: any

    Returns Promise<any[]>