JSFiddle - React, Tailwind, and code Playground
by Shin Okada
JavaScript
var obj = {"weather":{"id":"weather","x":4,"y":0,"width":8,"height":7},"clock":{"id":"clock","x":8,"y":7,"width":3,"height":3},"todo":{"id":"todo","x":0,"y":0,"width":4,"height":7}};
var newgrid = new Object();
newgrid[name]={"id":name ,"x":0,"y":0,"width":12,"height":9};
result.push(newgrid);
var total = Object.assign(obj, newgrid);
console.log(total);