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