{"ScriptPreparationCode":null,"TestCases":[{"Name":"with spread operator","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, 1000).reduce((acc, num) =\u003E {\r\n return {\r\n ...acc,\r\n [num]: num\r\n }\r\n}, {})","IsDeferred":false},{"Name":"with 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\nrange(0, 1000).reduce((acc, num) =\u003E {\r\n return Object.assign(acc, {[num]: num})\r\n}, {})","IsDeferred":false}]}