{"ScriptPreparationCode":"var 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}","TestCases":[{"Name":"with spread operator","Code":"range(0, 1000).reduce((acc, num) =\u003E {\r\n return {\r\n ...acc,\r\n [num]: num\r\n }\r\n}, {})","IsDeferred":false},{"Name":"with mutation","Code":"range(0, 1000).reduce((acc, num) =\u003E {\r\n acc[num] = num\r\n return acc\r\n}, {})","IsDeferred":false},{"Name":"with object assign","Code":"range(0, 1000).reduce((acc, num) =\u003E {\r\n return Object.assign(acc, {[num]: num})\r\n}, {})","IsDeferred":false},{"Name":"with new object assign","Code":"range(0, 1000).reduce((acc, num) =\u003E {\r\n return Object.assign({}, acc, {[num]: num})\r\n}, {})","IsDeferred":false},{"Name":"foreach ","Code":"const output = {};\r\nrange(0, 1000).forEach((num) =\u003E {\r\n output[num] = num;\r\n});","IsDeferred":false}]}