回答編集履歴

1

chousei

2021/09/28 05:24

投稿

yambejp
yambejp

スコア116732

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)=>(x.map((i,j)=>i+y[j])));
7
+ const result=array.reduce((x,y)=>x.map((i,j)=>i+y[j]));
8
8
 
9
9
  console.log(result);
10
10