let array = [{"sector": "adad"},{"sector": "adadasdsd"},{"sector": "sdsdsd"},{"origin": "sdfsf"},{"destination":"dfsfsdf"}]
let reduced = array.reduce((a, c, i) => {
let key = Object.keys(c)[0];
if (!(key in a)) a[key] = [];
if (!a[key].includes(c[key])) a[key].push(c[key]);
return a;
}, {})
console.log(reduced)
Run code snippet