@oazmi/kitchensink - v0.9.13
    Preparing search index...

    Variable array_fromAsyncConst

    array_fromAsync: {
        <T>(
            iterableOrArrayLike:
                | AsyncIterable<T, any, any>
                | Iterable<T | PromiseLike<T>, any, any>
                | ArrayLike<T | PromiseLike<T>>,
        ): Promise<T[]>;
        <T, U>(
            iterableOrArrayLike:
                | AsyncIterable<T, any, any>
                | Iterable<T, any, any>
                | ArrayLike<T>,
            mapFn: (value: Awaited<T>, index: number) => U,
            thisArg?: any,
        ): Promise<Awaited<U>[]>;
    } = ...

    alias for Array.fromAsync.

    Type declaration

      • <T>(
            iterableOrArrayLike:
                | AsyncIterable<T, any, any>
                | Iterable<T | PromiseLike<T>, any, any>
                | ArrayLike<T | PromiseLike<T>>,
        ): Promise<T[]>
      • Creates an array from an async iterator or iterable object.

        Type Parameters

        • T

        Parameters

        • iterableOrArrayLike:
              | AsyncIterable<T, any, any>
              | Iterable<T | PromiseLike<T>, any, any>
              | ArrayLike<T | PromiseLike<T>>

          An async iterator or array-like object to convert to an array.

        Returns Promise<T[]>

      • <T, U>(
            iterableOrArrayLike:
                | AsyncIterable<T, any, any>
                | Iterable<T, any, any>
                | ArrayLike<T>,
            mapFn: (value: Awaited<T>, index: number) => U,
            thisArg?: any,
        ): Promise<Awaited<U>[]>
      • Creates an array from an async iterator or iterable object.

        Type Parameters

        • T
        • U

        Parameters

        • iterableOrArrayLike: AsyncIterable<T, any, any> | Iterable<T, any, any> | ArrayLike<T>

          An async iterator or array-like object to convert to an array.

        • mapFn: (value: Awaited<T>, index: number) => U
        • OptionalthisArg: any

          Value of 'this' used when executing mapfn.

        Returns Promise<Awaited<U>[]>