回答編集履歴

1

1

2021/08/20 13:08

投稿

takasima20
takasima20

スコア7464

test CHANGED
@@ -14,25 +14,25 @@
14
14
 
15
15
  if (p == -1) return [];
16
16
 
17
- let [x1] = data.splice(p,1)
17
+ const [x1] = data.splice(p,1)
18
18
 
19
19
  ret.push(x1);
20
20
 
21
21
 
22
22
 
23
- let [x2] = data.splice(Math.floor(Math.random() * data.length),1);
23
+ const [x2] = data.splice(Math.floor(Math.random() * data.length),1);
24
24
 
25
25
  ret.push(x2);
26
26
 
27
27
 
28
28
 
29
- let [x3] = data.splice(Math.floor(Math.random() * data.length),1);
29
+ const [x3] = data.splice(Math.floor(Math.random() * data.length),1);
30
30
 
31
31
  ret.push(x3);
32
32
 
33
33
 
34
34
 
35
- let [x4] = data.splice(Math.floor(Math.random() * data.length),1);
35
+ const [x4] = data.splice(Math.floor(Math.random() * data.length),1);
36
36
 
37
37
  ret.push(x4);
38
38