質問編集履歴

2

.

2017/10/22 09:00

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -6,9 +6,7 @@
6
6
 
7
7
  return funcs.reduce((accumulator, func) => {
8
8
 
9
- accumulator = func(accumulator);
10
-
11
- return accumulator;
9
+ return func(accumulator);
12
10
 
13
11
  }, input);
14
12
 

1

.

2017/10/22 09:00

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -22,7 +22,7 @@
22
22
 
23
23
  function increment(value) {
24
24
 
25
- return value = value + 1;
25
+ return value + 1;
26
26
 
27
27
  }
28
28
 
@@ -30,7 +30,7 @@
30
30
 
31
31
  function double(value) {
32
32
 
33
- return value = value * 2;
33
+ return value * 2;
34
34
 
35
35
  }
36
36