c= a.concat(b) let result=[]; let temp ={}; c.forEach(p-> { if(!temp[p.主键]){ result.push(p); temp[p.主键]=true; } })