{"ScriptPreparationCode":"var obj = { ...[...Array(10).keys()] };\r\nvar arrOfObjs = [];\r\nvar obj1 = Array(5).fill(0).map((_, idx) =\u003E idx \u002B 5).reduce((acc, val) =\u003E { acc[val] = val;\r\n return acc;\r\n}, {});\r\nvar obj2 = Array(5).fill(0).map((_, idx) =\u003E idx \u002B 10).reduce((acc, val) =\u003E {acc[val] = val;\r\n return acc;\r\n}, {});\r\nvar obj3 = Array(5).fill(0).map((_, idx) =\u003E idx \u002B 15).reduce((acc, val) =\u003E { acc[val] = val;\r\n return acc;\r\n}, {});\r\nvar obj4 = Array(5).fill(0).map((_, idx) =\u003E idx \u002B 20).reduce((acc, val) =\u003E { acc[val] = val;\r\n return acc;\r\n}, {});\r\narrOfObjs.push(obj1, obj2, obj3, obj4);","TestCases":[{"Name":"assign","Code":"var result = Object.assign(obj, ...arrOfObjs);","IsDeferred":false},{"Name":"reduce with spread operator","Code":"var result = arrOfObjs.reduce((acc, val) =\u003E ({ ...acc, ...val }), obj);","IsDeferred":false}]}