Array 1
[ { "id": 1, "name": "Test" }, { "id": 2, "name": "Test2" } ]
Array 2
[ { "id": 1, "name": "Test3" }, { "id": 2, "name": "Test4" }, { "id": 3, "name": "Test2" } ]
If item exists in Array 2, I need to remove it from Array 1, so Test2 would be removed from Array 1. How can I loop through both arrays and check the name value's presence in Array 2 in order to remove it from Array 1?
1not removed?name, notid?array_filterfor this.Array.prototype.filter.