{"ScriptPreparationCode":"var arrayOfArrays = Array(10_000).fill([{ id: 1 }])","TestCases":[{"Name":"flatMap","Code":"arrayOfArrays.flatMap((array) =\u003E array.flatMap((element) =\u003E element.id))","IsDeferred":false},{"Name":"reduce","Code":"arrayOfArrays.reduce((result, array) =\u003E {\r\n const getAllSelectedFacetFilterIdsSelectedInHierarchy = (\r\n listAcc,\r\n element\r\n ) =\u003E [...listAcc, element.id];\r\n\r\n return [\r\n ...result,\r\n ...array.reduce(getAllSelectedFacetFilterIdsSelectedInHierarchy, []),\r\n ];\r\n}, [])","IsDeferred":false}]}