I'm using this script to download all tabs in a Google spreadsheet.
When I output the rows being downloaded, it's including blank arrays:
Output: Data 1: [[id, name], [1.0, John], [2.0, Smith], [, ], [, ], [, ], [, ], [, ], [, ], ...
function convertRangeToCsvFile_(csvFileName, sheet) {
// get available data range in the spreadsheet
var activeRange = sheet.getDataRange();
try {
var data = activeRange.getValues();
Logger.log('Data 1: %s', data); <----- Logging here
How can I clear this out from the final downloaded csv?
