UNPKG

@empathyco/x-components

Version:
57 lines (27 loc) 807 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 <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.