{"ScriptPreparationCode":"var arr = Array.from({length: 10000}, () =\u003E Math.floor(Math.random() * 10000));","TestCases":[{"Name":"Reduce with push","Code":"arr.reduce((acc, x) =\u003E {\r\n if (x \u003C 5000) {\r\n acc.push(x);\r\n }\r\n return acc;\r\n}, [])","IsDeferred":false},{"Name":"flatMap","Code":"arr.flatMap((x) =\u003E {\r\n if (x \u003C5000) {\r\n return x;\r\n }\r\n return [];\r\n})","IsDeferred":false}]}