In Google Sheets, I have defined the following function in the script editor:
function make2dArray() { return [["