I have an array of objects
list = [{x:1,y:2}, {x:3,y:4}, {x:5,y:6}, {x:1,y:2}]
And I\'m looking for an efficient way (if possible O(
O(
Using lodash you can use this one-liner:
_.uniqBy(list, e => { return e.x && e.y })