{"ScriptPreparationCode":null,"TestCases":[{"Name":"lodash merge","Code":"var defaultOptions = {\r\n headers: {\r\n \u0027content-type\u0027: \u0027application/json\u0027,\r\n \u0027user-agent\u0027: \u0027super-app\u0027,\r\n }\r\n};\r\nvar options = { headers: {\u0027content-type\u0027: \u0027application/xml\u0027 }, data: { \u0027key\u0027: \u0027value\u0027 } };\r\nvar result = _.merge(defaultOptions, options);","IsDeferred":false},{"Name":"object.assign","Code":"var defaultOptions = {\r\n headers: {\r\n \u0027content-type\u0027: \u0027application/json\u0027,\r\n \u0027user-agent\u0027: \u0027super-app\u0027,\r\n }\r\n};\r\nvar options = { headers: { \u0027content-type\u0027: \u0027application/xml\u0027 }, data: { \u0027key\u0027: \u0027value\u0027 } };\r\nvar result = Object.assign(defaultOptions, options);","IsDeferred":false},{"Name":"spread","Code":"var defaultOptions = {\r\n headers: {\r\n \u0027content-type\u0027: \u0027application/json\u0027,\r\n \u0027user-agent\u0027: \u0027super-app\u0027,\r\n }\r\n};\r\nvar options = { headers: { \u0027content-type\u0027: \u0027application/xml\u0027 }, data: { \u0027key\u0027: \u0027value\u0027 } };\r\nvar result = { ...defaultOptions, ...options };","IsDeferred":false},{"Name":"json deep clone","Code":"var defaultOptions = {\r\n headers: {\r\n \u0027content-type\u0027: \u0027application/json\u0027,\r\n \u0027user-agent\u0027: \u0027super-app\u0027,\r\n }\r\n};\r\nvar options = { headers: { \u0027content-type\u0027: \u0027application/xml\u0027 }, data: { \u0027key\u0027: \u0027value\u0027 } };\r\nvar clonedOptions = JSON.parse(JSON.stringify(options));\r\nvar result = Object.assign(defaultOptions, clonedOptions);","IsDeferred":false}]}