> For the complete documentation index, see [llms.txt](https://martins-victor.gitbook.io/1loc-lib/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://martins-victor.gitbook.io/1loc-lib/one-liners/arrayhassamevalues.md).

# arrayHasSameValues

Checks if given arrays have similar values

This works like `arrayEqual` but isn't order-sensitive. This means two arrays are equal if they have the same values irrespective of the arrangement of those values.

```javascript
import { arrayHasSameValues } from "1loc";

arrayHasSameValues([2, 3], [3, 2]) // true
arrayHasSameValues([1, 2], [1, 4]) // false
```
