How to unpivot a table using Google Apps Script?
问题 I have a table in a spreadsheet which I want to unpivot using google apps script: each one of the month rows of the original table have to become multiple rows in the new table. The problem is the code doesn't produce the expected result. Insted of creating arrays that ends like this (each line of the table ends with one different month): [[...,'April'],[...,'September'],[...,'December']] It's producing this (each line ends with the last month value of that line in the original table): [[...,