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