unzipAsync
unzipAsync<
T>(tuples,signal?):Promise<Unzipped<T>>
Defined in: packages/core/src/iterable/async/unzip.ts:17
Splits an iterable of tuples into one array per tuple position — the inverse
of zipAsync.
The async counterpart of unzip, and eager for the same reason: a column
cannot be produced without reading every row.
Time complexity: O(n × width).
Type Parameters
Section titled “Type Parameters”T extends readonly unknown[]
Parameters
Section titled “Parameters”tuples
Section titled “tuples”The tuples to split, sync or async.
signal?
Section titled “signal?”AbortSignal
Aborts the read.
Returns
Section titled “Returns”Promise<Unzipped<T>>
The columns. Empty when the input is.