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] })
<input ng-model="searchText"></label>
<ul>
<li ng-repeat="friend in friends | filter:mySearchFilter(searchText)">
</ul>
$scope.mySearchFilter = function(searchText) {
return function(value) {
return value.indexOf(searchText) !== -1;
}
}