質問編集履歴
1
少しソースを綺麗にした
test
CHANGED
File without changes
|
test
CHANGED
@@ -94,15 +94,9 @@
|
|
94
94
|
|
95
95
|
const obj3 = objArr2.map((obj2) => {
|
96
96
|
|
97
|
-
if (obj.id === obj2.id) {
|
97
|
+
if (obj.id === obj2.id) return { ...obj, ...obj2 };
|
98
98
|
|
99
|
-
return { ...obj, ...obj2 };
|
100
|
-
|
101
|
-
} else {
|
102
|
-
|
103
|
-
|
99
|
+
return;
|
104
|
-
|
105
|
-
}
|
106
100
|
|
107
101
|
});
|
108
102
|
|