@empathyco/x-components
Version:
Empathy X Components
57 lines (27 loc) • 807 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [flattenAllFilters](./x-components.flattenallfilters.md)
## flattenAllFilters() function
Flattens all filters from an array of facets, including hierarchical filters.
**Signature:**
```typescript
export declare function flattenAllFilters(facets: Facet[]): Filter[];
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
facets
</td><td>
Facet\[\]
</td><td>
The list of facets to extract filters from.
</td></tr>
</tbody></table>
**Returns:**
Filter\[\]
A flat array of all filters from all facets.