• Preparing search index...
  • The search index is not available
Vinyl
  • Vinyl
  • @amzn/vinyl-util
  • mapAsync

Function mapAsync

  • mapAsync<T, U>(arrayLike, transform, thisArg?): Promise<U[]>
  • map on ArrayLike objects with an asynchronous transformer.

    Type Parameters

    • T
    • U

    Parameters

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

          • value: T
          • index: number
          • array: ArrayLike<T>

          Returns Promise<U>

    • OptionalthisArg: any

    Returns Promise<U[]>

    See

    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map

    • Defined in util/collection/array.ts:84

Settings

Member Visibility
Vinyl
  • Loading...

Generated using TypeDoc