var a = [{
id: 1,
count: 1,
}, {
id: 2,
count: 1,
}, {
id: 3,
count: 3,
}, ]
var b = [{
id: 1,
count: 100,
}, {
id: 2,
count: 100,
}, {
id: 3,
count: 100,
}]
var data = a.concat(b);
var result = [{
id: 1,
count: 101,
}, {
id: 2,
count: 101,
}, {
id: 3,
count: 103,
}]