UNPKG

@empathyco/x-components

Version:
28 lines (16 loc) 846 B
<!-- 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 | Parameter | Type | Description | | --- | --- | --- | | someFilters | Filter\[\] | A list of filters to compare. | | anotherFilters | Filter\[\] | Another list of filters to compare. | **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.