{"ScriptPreparationCode":null,"TestCases":[{"Name":"Using the spread operator with constant inside","Code":"const firstObject = { sampleData: \u0027Hello world\u0027 }\r\nconst secondObject = { moreData: \u0027foo bar\u0027 }\r\nconst finalObject = {\r\n\t...secondObject,\r\n \t__key: \u0022a key\u0022,\r\n __src: \u0022a src\u0022,\r\n};","IsDeferred":false},{"Name":"Using Object.assign to merge two objects","Code":"const firstObject = { __key: \u0022a key\u0022, __src: \u0022a src\u0022, }\r\nconst secondObject = { moreData: \u0027foo bar\u0027 }\r\nconst finalObject = Object.assign(firstObject, secondObject);","IsDeferred":false},{"Name":"Using the spread operator to merge two objects","Code":"const firstObject = { __key: \u0022a key\u0022,\r\n __src: \u0022a src\u0022, }\r\nconst secondObject = { moreData: \u0027foo bar\u0027 }\r\nconst finalObject = {\r\n\t...secondObject,\r\n\t...firstObject\r\n};","IsDeferred":false},{"Name":"Using the spread operator with two extra variables","Code":"const __key = \u0022a key\u0022;\r\nconst __src = \u0022a src\u0022;\r\nconst secondObject = { moreData: \u0027foo bar\u0027 }\r\nconst finalObject = {\r\n\t...secondObject,\r\n __key,\r\n __src,\r\n};","IsDeferred":false},{"Name":"Composing objects into new one ","Code":"const __key = \u0022a key\u0022;\r\nconst __src = \u0022a src\u0022;\r\nconst data = { moreData: \u0027foo bar\u0027 }\r\nconst finalObject = {\r\n\tdata,\r\n __key,\r\n __src,\r\n};","IsDeferred":false}]}