это мой код
var arr = [{
id: '1',
total: "Total:",
titlea: 'a',
titleb: 'b',
}];
let c= {titlec: 'c'}
arr.push(c);
console.log(arr)
Так что console.log показывает, что
0: {id: "1", totalPdf: "Total:", titlea: "a", titleb: "b"}
1: {titlec: "c"}
Но я хочу это как:
0: {id: "1", totalPdf: "Total:", titlea: "a", titleb: "b", titlec: "c"}
Как я могусделай это?Спасибо