質問編集履歴
2
.
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
.
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
function increment(value) {
|
24
24
|
|
25
|
-
return value
|
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
|
33
|
+
return value * 2;
|
34
34
|
|
35
35
|
}
|
36
36
|
|