{"ScriptPreparationCode":"var arr = [];\r\nfor (var i = 0; i \u003C 12345; 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":"forEach","Code":"arr.forEach(item =\u003E sumForEach \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},{"Name":"map","Code":"arr.map(item =\u003E (sumMap \u002B= someFn(item)));","IsDeferred":false},{"Name":"filter","Code":"arr.filter(item =\u003E (sumFilter \u002B= someFn(item)));","IsDeferred":false},{"Name":"for","Code":"var count = arr.length;\r\nfor (var j = 0; j \u003C count; j\u002B\u002B) {\r\n sumFor \u002B= arr[j];\r\n}","IsDeferred":false}]}