Creates a new array of tuples, each containing the item at the given index from both arrays.
If secondArray is shorter than firstArray, the second position in the tuple will be undefined. Iteration always uses the length of the first array.
secondArray
firstArray
undefined
The first array. Each item in this will take up the first tuple spot.
The second array. Each item in this will take up the second tuple spot.
An array of [firstItem, secondItem] tuples for each index in firstArray.
[firstItem, secondItem]
Creates a new array of tuples, each containing the item at the given index from both arrays.
If
secondArrayis shorter thanfirstArray, the second position in the tuple will beundefined. Iteration always uses the length of the first array.