回答編集履歴

1

訂正

2020/07/03 00:41

投稿

AkitoshiManabe
AkitoshiManabe

スコア5434

test CHANGED
@@ -12,13 +12,13 @@
12
12
 
13
13
  ```javascript
14
14
 
15
- var goal = start.reduce( (map, [key, title, ...others]) => (
15
+ var goal = start.reduce( (map, [key, expenseTitle, ...others]) => (
16
16
 
17
17
  map.has(key)
18
18
 
19
- ? map.get(key).array.push(others)
19
+ ? map.get(key).arrays.push(others)
20
20
 
21
- : map.set(key, {expenseTitle:title,array:[others]})
21
+ : map.set(key, {expenseTitle,arrays:[others]})
22
22
 
23
23
  , map), new Map);
24
24