{"ScriptPreparationCode":"arr = [];\r\nfor (let i = 0; i \u003C 1000; \u002B\u002Bi) {\r\n arr.push({\r\n foo: Math.random() \u003E 0.5,\r\n bar: Math.round(Math.random() * 100),\r\n });\r\n}","TestCases":[{"Name":"reduce","Code":"const result = arr.reduce((acc, item) =\u003E {\r\n if (!item.foo) {\r\n acc.push(item.bar);\r\n }\r\n return acc;\r\n }, []);","IsDeferred":false},{"Name":"filter_map","Code":"const result = arr\r\n .filter((item) =\u003E !item.foo)\r\n .map((item) =\u003E item.bar);","IsDeferred":false}]}