Angi interview question

Dedupe an array of objects by property