> For the complete documentation index, see [llms.txt](https://bret-maxime.gitbook.io/reactjrx/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bret-maxime.gitbook.io/reactjrx/utils/javascript/arrayequal.md).

# arrayEqual

Returns true when two arrays have the same length and the same items at each index, compared with `===`.

### Usage

```typescript
import { arrayEqual } from "reactjrx"

arrayEqual([1, 2], [1, 2]) // true
arrayEqual([{ id: 1 }], [{ id: 1 }]) // false, the two objects are different references
```

### Reference

```typescript
function arrayEqual<A, B>(a: readonly A[], b: readonly B[]): boolean
```
