Comparing two arrays of objects, and exclude the elements who match values into new array in JS

前端 未结 6 1679
孤独总比滥情好
孤独总比滥情好 2020-11-28 03:57

here is my use case in JavaScript:

I have two arrays of objects which have properties that match (id & name).

var result1 = [
    {id:1, name:\'S         


        
6条回答
提交回复
热议问题