[**@bondsports/general**](../README.md) • **Docs**

***

[@bondsports/general](../globals.md) / arraysEquals

# Function: ~~arraysEquals()~~

> **arraysEquals**(`firstArray`, ...`arrays`): `boolean`

Compares the first array with multiple other arrays to determine if they are all equal.
Uses a deep comparison method (isEqual) to check the contents of the arrays.

## Parameters

• **firstArray**: `any`[]

The first array to compare against the others.

• ...**arrays**: `any`[][]

The other arrays to compare to the first array.

## Returns

`boolean`

- Returns true if all arrays are equal; otherwise, false.

## Deprecated

Use `areArraysEqual` instead.

## Example

```ts
arraysEquals([1, 2, 3], [1, 2, 3], [1, 2, 3]); // returns true
arraysEquals([1, 2], [1, 2, 3]); // returns false
arraysEquals([], [], []); // returns true
```

## Defined in

[utils/array.util.ts:181](https://github.com/Bond-Sports/bondUtils/blob/545f16ceb055481acfd7641d7809c0f252d3a5e6/packages/general/src/utils/array.util.ts#L181)
