{"ScriptPreparationCode":"var arr = Array.from({length:100000}, (v, i) =\u003E ({name: i, shouldNotBeFiltered: i % 2 === 0}));","TestCases":[{"Name":"flatMap","Code":"arr.flatMap(({ name, shouldNotBeFiltered }) =\u003E (shouldNotBeFiltered ? [name] : []));","IsDeferred":false},{"Name":"reduce","Code":"arr.reduce((acc, { name, shouldNotBeFiltered }) =\u003E {\r\n if (shouldNotBeFiltered) {\r\n const elementToPush = name;\r\n acc.push(elementToPush);\r\n }\r\n return acc;\r\n}, []);","IsDeferred":false},{"Name":"loop","Code":"const result = [];\r\nfor (const { name, shouldNotBeFiltered } of arr) {\r\n if (shouldNotBeFiltered) {\r\n const elementToPush = name;\r\n result.push(elementToPush);\r\n }\r\n}","IsDeferred":false}]}