{"ScriptPreparationCode":null,"TestCases":[{"Name":"Using the spread operator","Code":"const firstObject = { \r\n \t\t\t\t\t\tsampleData: \u0027Hello world\u0027,\r\n \t\t\t\t\t\tnestedObj: {\r\n property1: \u0027property1\u0027,\r\n property2: \u0027property2\u0027,\r\n property3: \u0027property3\u0027,\r\n property4: \u0027property4\u0027\r\n }\r\n }\r\nconst secondObject = { \r\n \t\t\t\t\t\toreData: \u0027foo bar\u0027,\r\n \t\t\t\t\t\tanotherNestedObj: {\r\n property1: \u0027property1\u0027,\r\n property2: \u0027property2\u0027,\r\n property3: \u0027property3\u0027,\r\n property4: \u0027property4\u0027\r\n }\r\n\t\t\t\t\t}\r\nconst finalObject = {\r\n\t...firstObject,\r\n \t...secondObject\r\n};","IsDeferred":false},{"Name":"Using Object.assign","Code":"const firstObject = { \r\n \t\t\t\t\t\tsampleData: \u0027Hello world\u0027,\r\n \t\t\t\t\t\tnestedObj: {\r\n property1: \u0027property1\u0027,\r\n property2: \u0027property2\u0027,\r\n property3: \u0027property3\u0027,\r\n property4: \u0027property4\u0027\r\n }\r\n }\r\nconst secondObject = { \r\n \t\t\t\t\t\toreData: \u0027foo bar\u0027,\r\n \t\t\t\t\t\tanotherNestedObj: {\r\n property1: \u0027property1\u0027,\r\n property2: \u0027property2\u0027,\r\n property3: \u0027property3\u0027,\r\n property4: \u0027property4\u0027\r\n }\r\n\t\t\t\t\t}\r\nconst finalObject = Object.assign({}, firstObject, secondObject);","IsDeferred":false}]}