I have an question, I want to add an column to all my rows in a two dimensional array.For example:
var arr = [["Tom",456],["Peter",756],["Sara",348]];
var arr_1 = ["USA","GERMANY",AUSTRIA"];
Match this array to:
[["Tom",456,"USA"],["Peter",756,"GERMANY"],["Sara",348,"AUSTRIA"]];
Do you have an solution with an loop or an match function?
push()to append the element of one array to the nested arrays in the other.