{"ScriptPreparationCode":"var max = 100000;\r\n\r\nvar arr = [];\r\nfor (var i = 0; i \u003C= max; i\u002B\u002B) { arr.push(i); }","TestCases":[{"Name":"Lodash","Code":"\r\n\r\narr.forEach(() =\u003E {\r\n let object = { \u0027a\u0027: { \u0027b\u0027: 2 } };\r\n let other = { \u0027a\u0027: { \u0027b\u0027: 1, \u0027c\u0027: 3 } };\r\n _.defaultsDeep(object, other);\r\n})","IsDeferred":false},{"Name":"Native","Code":"function defaultsDeep(target, ...sources) {\r\n sources.forEach(source =\u003E {\r\n Object.keys(source).forEach(key =\u003E {\r\n if (typeof source[key] === \u0027object\u0027) {\r\n if (!target[key]) {\r\n Object.assign(target, { [key]: {} });\r\n }\r\n defaultsDeep(target[key], source[key]);\r\n } else {\r\n if (!target[key]) {\r\n Object.assign(target, { [key]: source[key] });\r\n }\r\n }\r\n });\r\n });\r\n\r\n return target;\r\n}\r\n\r\n\r\narr.forEach(() =\u003E {\r\n let object = { \u0027a\u0027: { \u0027b\u0027: 2 } };\r\n let other = { \u0027a\u0027: { \u0027b\u0027: 1, \u0027c\u0027: 3 } };\r\n defaultsDeep(object, other);\r\n});","IsDeferred":false}]}