I'm piecing together some Google Apps Script from this post that will take a list of files and import all of them as unique sheets. It works all except for if there is a blank/empty spot in any of the .csvs then the import to sheet writes that blank value as "undefined" instead of skipping over or leaving blank.
Is there a way to have a multi-dimensional array with an empty nested array and then use
newsheet.getRange(i+1, 1, 1, csvData[i].length).setValues(new Array(csvData[i]));
WITHOUT the blank/empty spots in my .csv setting an undefined value? Or is there a quick cleanup I can do overtop?
Thanks