回答編集履歴

1

chousei

2021/07/26 07:55

投稿

yambejp
yambejp

スコア116391

test CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  ]
16
16
 
17
- quizData=quizData.map(x=>(x.choices=x.choices.map(x=>[x,Math.random()]).sort((x,y)=>x[1]-y[1]).map(x=>x[0]),x));
17
+ quizData.forEach(x=>x.choices=x.choices.map(x=>[x,Math.random()]).sort((x,y)=>x[1]-y[1]).map(x=>x[0]));
18
18
 
19
19
  console.log(quizData);
20
20