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