{"ScriptPreparationCode":"var data = Array(10 ** 4).fill(null).map((_, i) =\u003E {\r\n return {\r\n checked: Math.random() \u003C 0.5,\r\n val: Math.floor(Math.random() * 10000)\r\n }\r\n})\r\n\r\nfunction someFn(i) {\r\n return (i * 3 * 8 / 1200 * 0.002 / 40 * 0.2);\r\n}","TestCases":[{"Name":"Filter \u0026 Map case 1","Code":"data.filter(el =\u003E el.checked).map(el =\u003E someFn(el.val))","IsDeferred":false},{"Name":"Reduce case 1","Code":"data.reduce((prev, curr) =\u003E {\r\n return curr.checked ? (prev.push(someFn(curr.val)), prev) : prev \r\n }, [])","IsDeferred":false},{"Name":"Reduce case 2","Code":"data.reduce((prev, curr) =\u003E {\r\n return curr.checked ? [...prev, someFn(curr.val)] : prev \r\n }, [])","IsDeferred":false}]}