質問編集履歴

1

元配列が漏れてた

2021/02/06 06:51

投稿

TuTettuuu
TuTettuuu

スコア12

test CHANGED
File without changes
test CHANGED
@@ -74,6 +74,32 @@
74
74
 
75
75
  ```ts
76
76
 
77
+ const before = [
78
+
79
+ {
80
+
81
+ key1: 'A',
82
+
83
+ key2: 'AA',
84
+
85
+ key3: 'AAA',
86
+
87
+ },
88
+
89
+ {
90
+
91
+ key1: 'B',
92
+
93
+ key2: 'BB',
94
+
95
+ key3: 'BBB',
96
+
97
+ }
98
+
99
+ ]
100
+
101
+
102
+
77
103
  const after1 = before.reduce((acc, cur) => ({
78
104
 
79
105
  ...acc,