{"ScriptPreparationCode":"var arr = [];\r\nfor (var i = 0; i \u003C 1000; i\u002B\u002B) {\r\n arr[i] = i;\r\n}\r\n\r\nfunction someFn(i) {\r\n return (i * 3 * 8 / 1200 * 0.002 / 40 * 0.2);\r\n}\r\n\r\nvar sumForEach = 0,\r\n sumReduce = 0,\r\n sumMap = 0,\r\n sumFilter = 0,\r\n sumFor = 0;","TestCases":[{"Name":"filter","Code":"arr.filter(item =\u003E (sumFilter \u002B= someFn(item)));","IsDeferred":false},{"Name":"reduce","Code":"sumReduce = arr.reduce((lastValue, item) =\u003E {\r\n return sumReduce \u002B= someFn(item);\r\n});","IsDeferred":false}]}