iteragain
Version:
Javascript Iterable/Iterator/Generator-function utilities.
9 lines • 539 B
TypeScript
import type { IteratorOrIterable } from './types';
/**
* The inverse of `zip` and `zipLongest`. This function disaggregates the elements of the input iterator. The nth
* iterator in the returned tuple contains the nth element of each value in the input iterator. The length of the
* returned tuple is determined by the length of the first value in the input iterator.
*/
export declare function unzip<T extends any[]>(arg: IteratorOrIterable<T>): IterableIterator<T[number]>[];
export default unzip;
//# sourceMappingURL=unzip.d.ts.map