var contacts = [{name: 'a', phone: 1},{name: 'b', phone: 2},{name: 'a', phone: 1}];
var contactsObj = {};
contacts.forEach(function(contact){
contactsObj[contact.name + ':' + contact.phone] = {
name: contact.name,
phone: contact.phone
};
});
var uniqueContacts = Object.keys(contactsObj).map(function(key){ return contactsObj[key] })