Returns a generator that aggregates elements from the iterables producing tuples with the next element from each one.
Tuples with elements from each iterator
for item of zip([1, 2, 3], ['sugar', 'spice', 'nice']) console.log(item)// [1, 'sugar']// [2, 'spice']// [3, 'nice']
Rest
The iterables to zip
Generated using TypeDoc
Returns a generator that aggregates elements from the iterables producing tuples with the next element from each one.
Returns
Tuples with elements from each iterator
Example