{"ScriptPreparationCode":null,"TestCases":[{"Name":"lodash merge","Code":"var a = { a: \u0027oh\u0027, b: \u0027my\u0027 };\r\nvar b = { c: \u0027goddess\u0027 };\r\nvar c = _.merge(a, b);","IsDeferred":false},{"Name":"classiuz merge","Code":"var a = { a: \u0027oh\u0027, b: \u0027my\u0027 };\r\nvar b = { c: \u0027goddess\u0027 };\r\nconst mergeObject = (target, source) =\u003E {\r\n const newSourceEntries = Object.entries(source).map(([key, value]) =\u003E {\r\n return [key, typeof value === \u0027object\u0027 ? {...target[key], ...value} : value]\r\n })\r\n const newSource = Object.fromEntries(newSourceEntries)\r\n return {...target, ...newSource}\r\n}\r\n\r\nvar c = mergeObject(a, b);","IsDeferred":false}]}