> 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/arrayequal.md).

# arrayEqual

Checks if two given arrays are equal in value and order.

This function is order-sensitive. This means, two arrays are only equal if they have the same values and are in the same order.

```javascript
import { arrayEqual, cloneArray } from '1loc'

const arr1 = [2, 3, 4]
const arr2 = cloneArray(arr1)

arrayEqual(arr1, arr2) // true
arrayEqual(arr1, [3, 2, 4]) // false
```
