{"ScriptPreparationCode":null,"TestCases":[{"Name":"Using Object.assign","Code":"const firstObject = { sampleData: \u0027Hello world\u0027 }\r\nconst secondObject = { moreData: \u0027foo bar\u0027 }\r\nconst finalObject = Object.assign(firstObject, secondObject);\r\nfinalObject[\u0027sampleData\u0027] == \u0027Hello world\u0027;","IsDeferred":false},{"Name":"Not merging","Code":"\r\nconst firstObject = [{ sampleData: \u0027Hello world\u0027 }, {sampleData: \u0027Hello world\u0027}]\r\nfirstObject.forEach(key =\u003E {firstObject[\u0027sampleData\u0027] == \u0027Hello world\u0027; })\r\n\r\n","IsDeferred":false}]}