我想(优雅的)合并两个数组
let a = [{
id: '1',
name: 'test1',
count: 2
},{
id: '2',
name: 'test2',
count: 3
}]
let b = [{
id: '1',
name: 'test1',
count: 1
},{
id: '3',
name: 'test3',
count: 3
}]
// 结果为
[{
id: '1',
name: 'test1',
count: 1
},{
id: '2',
name: 'test2',
count: 3
},{
id: '3',
name: 'test3',
count: 3
}]