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

***

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

# Function: areArraysEqual()

> **areArraysEqual**\<`T`\>(`firstArray`, ...`arrays`): `boolean`

Compares an array with one or more arrays to determine if they are all equal.

## Type Parameters

• **T** = `any`

The type of elements in the arrays.

## Parameters

• **firstArray**: `T`[]

The first array to compare against.

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

One or more additional arrays to compare.

## Returns

`boolean`

True if all arrays are equal, false otherwise.

## Throws

Throws an error if any of the inputs are not arrays.

## Defined in

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