Upload a 2D list from Mit app to a google spreadsheet

what is the beste way to upload a long 2d liste for the app to a google spreadsheet
this is what i am thinking but will it work is there a beter way how to do it?


var SheetName=e.parameter.SheetName;
var ts = ss.insertSheet(SheetName);
var a=e.parameter.Name;
var b=e.parameter.DateOfBirth;
var c=e.parameter.CityOfBirth;


One method: