@empathyco/x-components
Version:
Empathy X Components
27 lines (15 loc) • 672 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
| Parameter | Type | Description |
| --- | --- | --- |
| facets | Facet\[\] | The list of facets to extract filters from. |
**Returns:**
Filter\[\]
A flat array of all filters from all facets.