Javascript – Need to return a dynamic set of columns from 2d array
I need to return several columns from an array pulled out of Google Sheets. Currently my code is let out = data.map(function (row, index) { return [row[1], row[0], row[36], row[6], row[45], row[46], row[47], row[7]]}); This code works well. But the…