CodePudding user response:
var arr=[
[" a ", "b", "c"),
[" d ", "e", "f"],
[" g ", "h", "I"],
[" j ", "k", "l"]
];
Var arr2=arr [0]. The map ((v1, x)=& gt; Arr. The map ((v2, y)=& gt; Arr [y] [x]));
console.log(arr2);
CodePudding user response:
CodePudding user response:
var arr=[
[" a ", "b", "c"),
[" d ", "e", "f"],
[" g ", "h", "I"],
[" j ", "k", "l"]
];
Var arr2=arr [0]. The map ((v1, x)=& gt; Arr. The map ((v2, y)=& gt; Arr [y] [x]));
console.log(arr2);
CodePudding user response: