@empathyco/x-components
Version:
Empathy X Components
28 lines (16 loc) • 846 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [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.