UNPKG

@empathyco/x-components

Version:
27 lines (15 loc) 672 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [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.