var a1 = [{ id : 1, name : "test"}, { id : 2, name : "test2"}];
var a2 = [{ id : 1, count : "1"}, {id : 2, count : "2"}];
var a3 = [{ id : 1, type : "string"}, {id : 3, type : "string"}];
const groups = {};
[a1, a2, a3].reduce((p, c) => p.concat(c), []).forEach(it => {
const group = groups[it.id] || [];
group.push(it);
groups[it.id] = group;
});
const results = Object.keys(groups).map(key => {
const group = groups[key];
return Object.assign.apply(null, [{}].concat(group));
});
console.log(results);