Skip to content

Tag: google-apps-script

Sum of Elements in 2D array

I have a 2d array and was able to pass it from code.gs to JavaScript. The next thing I want to do is to sum all elements or numbers example in column 2. I’ve seen this code while searching online but it add all elements in the array. I don’t know how to personalize it to meet my needs. `