UNPKG

iteragain

Version:

Javascript Iterable/Iterator/Generator-function utilities.

7 lines 546 B
import type { IteratorOrIterable } from './types'; /** Aggregates any number of iterables into one. Stops when one of the iterables is empty. */ export declare function zip<A, B>(a: IteratorOrIterable<A>, b: IteratorOrIterable<B>): IterableIterator<[A, B]>; export declare function zip<A, B, C>(a: IteratorOrIterable<A>, b: IteratorOrIterable<B>, c: IteratorOrIterable<C>): IterableIterator<[A, B, C]>; export declare function zip(...args: IteratorOrIterable<any>[]): IterableIterator<any[]>; export default zip; //# sourceMappingURL=zip.d.ts.map