Implement zip(...arrays)
Write zip(...arrays) that combines multiple arrays into an array of tuples, pairing up elements at the same index.
zip([1, 2, 3], ["a", "b", "c"]); // [[1,"a"], [2,"b"], [3,"c"]]If the arrays have different lengths, the result is as long as the longest one, with undefined filling gaps.