js remove duplicate objects with equal keys from array code example
Example: javascript to remove duplicates from an array
uniqueArray = a.filter(function(item, pos) {
return a.indexOf(item) == pos;
})
uniqueArray = a.filter(function(item, pos) {
return a.indexOf(item) == pos;
})