回答編集履歴
1
chousei
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
const array = [[1,2,3], [4,5,6], [7,8,9]]
|
6
6
|
|
7
|
-
const result=array.reduce((x,y)=>
|
7
|
+
const result=array.reduce((x,y)=>x.map((i,j)=>i+y[j]));
|
8
8
|
|
9
9
|
console.log(result);
|
10
10
|
|