let arr = [ [1, 3, 5], [7, 9, 12] ]; let newArr = arr[0].map((_, i) => arr.map(row => row[i])); console.log(newArr);
阅读量:1
点赞量:0