const addresses = [...]; // Some array I got from async call const uniqueAddresses = Array.from(new Set(addresses.map(a => a.id))) .map(id => { return addresses.find(a => a.id === id) })