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

***

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

# Function: isArrayEmpty()

> **isArrayEmpty**(`array`?): `boolean`

Checks if the provided input is an empty array.

## Parameters

• **array?**: `any`[]

The input to check, which can be an array or undefined.

## Returns

`boolean`

Returns true if the input is an empty array, false otherwise.

## Example

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

## Defined in

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