{"ScriptPreparationCode":"var array = [...Array(1000)].map(() =\u003E Math.random());","TestCases":[{"Name":"for","Code":"const group = {};\r\nfor (var i = 0; i \u003C array.length; i\u002B\u002B) {\r\n \r\n array[i];\r\n}","IsDeferred":false},{"Name":"foreach","Code":"const group = {};\r\narray.forEach(function(i) {\r\n const key = \u0060${array[i]}\u0060;\r\n \r\n group[key] = array[i];\r\n});","IsDeferred":false},{"Name":"some","Code":"const group = {};\r\narray.some(function(i) {\r\n const key = \u0060${array[i]}\u0060;\r\n \r\n group[key] = array[i];\r\n});","IsDeferred":false},{"Name":"for..of","Code":"const group = {};\r\nfor (var i of array) {\r\n const key = \u0060${array[i]}\u0060;\r\n \r\n group[key] = array[i];\r\n}","IsDeferred":false},{"Name":"reduce","Code":"array.reduce(function(group, i) {\r\n const key = \u0060${array[i]}\u0060;\r\n \r\n group[key] = array[i];\r\n \r\n return group;\r\n}, {});","IsDeferred":false}]}