let arr = [
{car: 'audi' , color: 'red'},
{car: 'audi' , color: 'black'},
{car: 'bmv' , color: 'black'},
{car: 'bmv' , color: 'red'},
{car: 'mers' , color: 'black'},
]
const unique = (array) => [...new Set(array.map(item => item.car))];
console.log(unique(arr))