回答編集履歴
1
doubleし忘れていた
answer
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
// どちらも同じ動作
|
19
19
|
const mapped = arr.map(double);
|
20
20
|
const reduced = arr.reduce((newArr, currentValue) => {
|
21
|
-
newArr.push(currentValue);
|
21
|
+
newArr.push(double(currentValue));
|
22
22
|
return newArr;
|
23
23
|
}, []);
|
24
24
|
```
|