Remove Objects with Duplicate Property from Array

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