UNPKG

@empathyco/x-components

Version:
73 lines (34 loc) 1.04 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [areFiltersDifferent](./x-components.arefiltersdifferent.md) ## areFiltersDifferent() function Compares if two lists contains the same filters. **Signature:** ```typescript export declare function areFiltersDifferent(someFilters: Filter[], anotherFilters: Filter[]): boolean; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> someFilters </td><td> Filter\[\] </td><td> A list of filters to compare. </td></tr> <tr><td> anotherFilters </td><td> Filter\[\] </td><td> Another list of filters to compare. </td></tr> </tbody></table> **Returns:** boolean True if the two lists of filters are equal, which means that they have the same filters. The position of the filter does not matter for this check.