I'd like to know how to insert a column into an array. I know the push function to add a row but not how to add a column like that:
A ; 1
B ; 2
C ; 3
D ; 4
To:
A ; A1 ; 1
B ; B2 ; 2
C ; C3 ; 3
D ; D4 ; 4
I guess I will have to loop between each row to add an item between two item but is there a way to do it as a bulk?
Here is a example.
Execution log
Reference