You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Apps Script Community
I have an array with data which reads like 1,2,3,.......600. I want to paste this array in a column (which I can choose where I want to paste) with a single line command such as setValues. How can I do that ? Any help will be much appreciated.
Edward Ulle
unread,
Jan 5, 2023, 11:01:33 AM1/5/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Apps Script Community
Transform a 1D array to a 2D array.
let a = [1,2,3,4,5];
let b = a.map( v => [v] );
console.log(b);
7:57:56 AM Info [ [ 1 ], [ 2 ], [ 3 ], [ 4 ], [ 5 ] ]