{"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\nfunction isValid(x) {\r\n return x % 2 === 0\r\n}","TestCases":[{"Name":"Map \u0026 Filter","Code":"arr.filter(isValid).map(someFn)","IsDeferred":false},{"Name":"Reduce","Code":"arr.reduce((acc, x) =\u003E {\r\n if (isValid(x)) {\r\n\t acc.push(someFn(x))\r\n }\r\n return acc;\r\n}, [])","IsDeferred":false}]}