{"ScriptPreparationCode":"var arr = Array(10_000).fill(1)","TestCases":[{"Name":"Reduce with empty erray","Code":"arr.reduce((acc, x) =\u003E {\r\n acc.push(x);\r\n\treturn acc;\r\n}, []);","IsDeferred":false},{"Name":"Reduce with filled array","Code":"arr.reduce((acc, x, index) =\u003E {\r\n acc[index] = x;\r\n\treturn acc;\r\n}, new Array(arr.length));","IsDeferred":false},{"Name":"Reduce with filled array with null","Code":"arr.reduce((acc, x, index) =\u003E {\r\n acc[index] = x;\r\n\treturn acc;\r\n}, new Array(arr.length).fill(null));","IsDeferred":false},{"Name":"Reduce with new Array","Code":"arr.reduce((acc, x, index) =\u003E {\r\n acc[index] = x;\r\n\treturn acc;\r\n}, new Array());","IsDeferred":false},{"Name":"Reduce with var","Code":"const a = new Array(arr.length);\r\narr.reduce((acc, x, index) =\u003E {\r\n acc[index] = x;\r\n\treturn acc;\r\n}, a);","IsDeferred":false},{"Name":"Reduce with var []","Code":"const a = [];\r\narr.reduce((acc, x, index) =\u003E {\r\n acc.push(x)\r\n\treturn acc;\r\n}, a);","IsDeferred":false},{"Name":"Reduce with var [] assign by index","Code":"const a = [];\r\narr.reduce((acc, x, index) =\u003E {\r\n acc[index] = x;\r\n\treturn acc;\r\n}, a);","IsDeferred":false}]}