function removeDuplicates(array, property) {
return array.filter((item, index, a) => a.map(i => i[property]).indexOf(item[property]) === index);
}
function removeDuplicates(array, property) {
return array.filter((item, index, a) => a.map(i => i[property]).indexOf(item[property]) === index);
}