{"ScriptPreparationCode":null,"TestCases":[{"Name":"reduce","Code":"const range = (from, to) =\u003E {\r\n const output = []\r\n for(var x = from; x \u003C to; x\u002B\u002B){\r\n output.push(x)\r\n }\r\n return output\r\n}\r\nrange(0, 10).reduce((acc, num) =\u003E {\r\n acc[num] = num;\r\n return acc\r\n}, {})","IsDeferred":false},{"Name":"object.assign","Code":"const range = (from, to) =\u003E {\r\n const output = []\r\n for(var x = from; x \u003C to; x\u002B\u002B){\r\n output.push(x)\r\n }\r\n return output\r\n}\r\nObject.assign({}, range(0,10).map(num =\u003E ({[num]: num})))","IsDeferred":false}]}