UNPKG

@empathyco/x-components

Version:
57 lines (27 loc) 938 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [flatHierarchicalFilters](./x-components.flathierarchicalfilters.md) ## flatHierarchicalFilters() function This function flattens the Hierarchical Filters, returning an array with all filters including the children. **Signature:** ```typescript export declare function flatHierarchicalFilters(hierarchicalFilters: HierarchicalFilter[]): HierarchicalFilter[]; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> hierarchicalFilters </td><td> HierarchicalFilter\[\] </td><td> The list of Hierarchical Filters to flatten. </td></tr> </tbody></table> **Returns:** HierarchicalFilter\[\] An array with all the Hierarchical filters.