I have a 2d array in Google Apps Script Javascript. I\'m trying to loop through all elements but one of the loop options is adding another element. So for example: