0rich.com
javascript object array remove duplicates by property
To remove duplicates from a JavaScript array of objects based on a specific property, you can use the reduce() method along with the findIndex() method:let arr = [{a: 1, b: 'foo'}, {a: 2, b: 'bar'}, {…
영리치