zip
zip<
T>(…xs):IteratorObject<Zip<T>>
Take the Iterables and return a Iterable of tuples.
The function evaluates the Iterables and converts them into arrays.
Example
collect(zip([1, 2, 3], [1, 2, 3]))// => [[1, 1], [2, 2], [3, 3]]Type Parameters
• T extends readonly Iterable<unknown>[]
Parameters
xs
…[...T[]]
Returns
IteratorObject<Zip<T>>