var data = [{pageID: "190", amount: "1"}, {pageID: "190", amount: "2"}];
function combineObjects(data) {
let arr = [];
data.forEach(obj=>{
let pageID = obj.pageID;
arr[pageID] = arr[pageID] || {pageID: pageID, amount: 0};
arr[pageID].amount = +arr[pageID].amount+ +obj.amount+'';
});
return arr.filter(e=>e);
}
console.log(sumObjects(data)); // [{pageID: "190", amount: "3"}]