I have an array of URLs pulled from the files in a folder, which I need to add to another array.
Array1 = [url1 , url2 , url3]
Array2 = [ [1 , 2] , [3 , 4] , [5 , 6] ]
I need the URL's to be distributed into each index, like:
Array2 = [ [url1 , 1 , 2] , [url2 , 3 , 4] , [url3 , 5 , 6] ]
Do I need to use a for loop, or concat, I'm unsure.
I've tried Array2.push([Array1]), but end up with all of Array1 in the first index position, rather than distributed through the array.