Creates an array of grouped elements, the first of which contains the first elements of the given arrays, the second of which contains the second elements of the given arrays, and so on. Zip elements up to the array with the min length.
Type of the left array elements.
left
Type of the right array elements.
right
The first array to process.
The second array to process.
Returns the new array of grouped elements.
zip([1, 2, 3], ['a', 'b', 'c']);// => [[1, 'a'], [2, 'b'], [3, 'c']] Copy
zip([1, 2, 3], ['a', 'b', 'c']);// => [[1, 'a'], [2, 'b'], [3, 'c']]
Generated using TypeDoc
Creates an array of grouped elements, the first of which contains the first elements of the given arrays, the second of which contains the second elements of the given arrays, and so on. Zip elements up to the array with the min length.