JSFiddle - React, Tailwind, and code Playground
by Arif Hasan
JavaScript
var arr = [{
id: '1',
total: "Total:",
titlea: 'a',
titleb: 'b',
}];
let c= {titlec: 'c',}
arr.forEach(o => Object.assign(o, c));
console.log(arr)