{"ScriptPreparationCode":null,"TestCases":[{"Name":"Using the spread operator","Code":"\r\nconst firstObject = { a: \u0027Hello world\u0027, b: 1, c: \u0027foobar\u0027, d: \u0027batman\u0027, e: \u0027hulk\u0027 }\r\nconst secondObject = { moreData: true }\r\nconst finalObject = {\r\n \t...secondObject,\r\n ...firstObject,\r\n\r\n};","IsDeferred":false},{"Name":"Using Object.assign","Code":"\r\nconst firstObject = { a: \u0027Hello world\u0027, b: 1, c: \u0027foobar\u0027, d: \u0027batman\u0027, e: \u0027hulk\u0027 }\r\nconst secondObject = { moreData: true }\r\n\r\nconst finalObject = Object.assign(secondObject, firstObject);\r\n","IsDeferred":false}]}