@tempots/std

isArrayEmpty() function

Checks if an array is empty.

Signature:

isArrayEmpty: (arr: T[]) => arr is []

Parameters

Parameter

Type

Description

arr

T[]

The array to check.

Returns: arr is []

true if the array is empty, false otherwise.