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[]>.
Map
Record
[key, value]
AsyncIterable
Promise<T[]>
Collects all elements of an iterable structure into a fresh array.
For
MapandRecordproduces an array of[key, value]entries. ForAsyncIterablereturns aPromise<T[]>.