回答編集履歴
1
訂正
test
CHANGED
@@ -12,13 +12,13 @@
|
|
12
12
|
|
13
13
|
```javascript
|
14
14
|
|
15
|
-
var goal = start.reduce( (map, [key,
|
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
|
21
|
+
: map.set(key, {expenseTitle,arrays:[others]})
|
22
22
|
|
23
23
|
, map), new Map);
|
24
24
|
|