{"ScriptPreparationCode":"let data = {}\r\nfor (i = 0; i \u003C 200; i\u002B\u002B) {\r\n const sub = { x: 9, y: 8, z: 7 }\r\n data[i] = { \r\n a: 1, \r\n b: 2, \r\n c: {\r\n x: 9, \r\n y: 8, \r\n z: 7\r\n }\r\n }\r\n}\r\nwindow.data = data\r\n\r\nlet newData = {}\r\nfor (i = 0; i \u003C 100; i\u002B\u002B) {\r\n const sub = { x: 9, y: 8, z: 7 }\r\n newData[i] = { \r\n a: 0, \r\n b: 0, \r\n c: {\r\n x: 0, \r\n y: 0, \r\n z: 0\r\n }\r\n }\r\n}\r\nwindow.newData = newData","TestCases":[{"Name":"lodash merge","Code":"var c = _.merge(window.data, window.newData);","IsDeferred":false},{"Name":"spread","Code":"var c = { ...window.data, ...window.newData };","IsDeferred":false},{"Name":"for in","Code":"let clone = Object.assign({}, window.newData)\r\n\r\nObject.keys(window.data).forEach(key =\u003E clone[key] = window.newData[key])","IsDeferred":false}]}