@empathyco/x-components
Version:
Empathy X Components
73 lines (34 loc) • 1.04 kB
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
<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.