{"ScriptPreparationCode":null,"TestCases":[{"Name":"Using the spread operator","Code":"const firstObject = { sampleData: \u0027Hello world\u0027 };\r\nconst secondObject = { moreData: \u0027foo bar\u0027 };\r\n\r\nconst finalObject =\r\n{\r\n\t...firstObject,\r\n \t...secondObject,\r\n};","IsDeferred":false},{"Name":"Using Object.assign","Code":"const firstObject = { sampleData: \u0027Hello world\u0027 };\r\nconst secondObject = { moreData: \u0027foo bar\u0027 };\r\n\r\nconst finalObject = Object.assign(\r\n {},\r\n firstObject,\r\n secondObject,\r\n);","IsDeferred":false}]}