How to remove all duplicates from an array of objects? How to remove all duplicates from an array of objects?