{"ScriptPreparationCode":"var arr = Array.from({length:10000}, (v, i) =\u003E ({name: i, assigned: Math.random() \u003C 0.5}));","TestCases":[{"Name":"flatMap","Code":"arr.flatMap((o) =\u003E (o.assigned ? [o.name] : []));","IsDeferred":false},{"Name":"reduce with push","Code":"arr.reduce((a, o) =\u003E (o.assigned \u0026\u0026 a.push(o.name), a), [])","IsDeferred":false},{"Name":"loop with push","Code":"{\r\n const a = [];\r\n for (const o of arr) if (o.assigned) a.push(o.name);\r\n}","IsDeferred":false}]}