Vinyl
    Preparing search index...

    Function mapAsync

    • Map on ArrayLike objects with an asynchronous transformer.

      Type Parameters

      • T
      • U

      Parameters

      • arrayLike: MaybePromise<ArrayLike<T>>

        The array-like object to transform

      • transform: (value: T, index: number, array: ArrayLike<T>) => Promise<U>

        Async function that transforms each element

      • Optionaloptions: { simultaneous?: number }

        Optional configuration object

        • Optional Readonlysimultaneous?: number

          Maximum number of transforms to run simultaneously (default: 1)

      Returns Promise<U[]>