回答編集履歴
1
プロパティ名なので'id'に変更
answer
CHANGED
@@ -46,5 +46,5 @@
|
|
46
46
|
[_.uniqBy](https://lodash.com/docs/4.17.11#uniqBy)で一撃なので論じるまでもありません。
|
47
47
|
|
48
48
|
```JavaScript
|
49
|
-
const result = _.uniqBy([...member1, ...member2],
|
49
|
+
const result = _.uniqBy([...member1, ...member2], 'id');
|
50
50
|
```
|