common-stuff
    Preparing search index...

    Function toArray

    • Collects all elements of an iterable structure into a fresh array.

      For Map and Record produces an array of [key, value] entries. For AsyncIterable returns a Promise<T[]>.

      Type Parameters

      • V

      Parameters

      • input: Set<V> | V[]

      Returns V[]

    • Collects all elements of an iterable structure into a fresh array.

      For Map and Record produces an array of [key, value] entries. For AsyncIterable returns a Promise<T[]>.

      Type Parameters

      • K
      • V

      Parameters

      • input: Map<K, V>

      Returns [K, V][]

    • Collects all elements of an iterable structure into a fresh array.

      For Map and Record produces an array of [key, value] entries. For AsyncIterable returns a Promise<T[]>.

      Type Parameters

      • T

      Parameters

      • input: AsyncIterable<T>

      Returns Promise<T[]>

    • Collects all elements of an iterable structure into a fresh array.

      For Map and Record produces an array of [key, value] entries. For AsyncIterable returns a Promise<T[]>.

      Type Parameters

      • T

      Parameters

      • input: Iterable<T>

      Returns T[]

    • Collects all elements of an iterable structure into a fresh array.

      For Map and Record produces an array of [key, value] entries. For AsyncIterable returns a Promise<T[]>.

      Type Parameters

      • K extends PropertyKey
      • V

      Parameters

      • input: Record<K, V>

      Returns [K, V][]