{"ScriptPreparationCode":null,"TestCases":[{"Name":"Using the spread operator","Code":"let firstObject = { sampleData: \u0027Hello world\u0027 };\r\nconst secondObject = { moreData: \u0027foo bar\u0027 };\r\nfirstObject = {\r\n\t...firstObject,\r\n \t...secondObject\r\n};","IsDeferred":false},{"Name":"Using Object.assign","Code":"let firstObject = { sampleData: \u0027Hello world\u0027 };\r\nconst secondObject = { moreData: \u0027foo bar\u0027 };\r\nObject.assign(firstObject, secondObject);","IsDeferred":false},{"Name":"Overriding the first object","Code":"let firstObject = { sampleData: \u0027Hello world\u0027 }\r\nconst secondObject = { moreData: \u0027foo bar\u0027 }\r\nObject.keys(secondObject).forEach(key =\u003E {firstObject[key] = secondObject[key] })","IsDeferred":false}]}