Home > Community Toolbox Reference > Array utilities > Basic operations
Checks if the given array has no items.
Argument | Type | Usage | Description |
---|---|---|---|
array | Array |
Required | The array to check. |
Bool
The following code chooses the next target from the array, or undefined
if none is available.
function get_next_target() {
if (array_empty(global.available_targets))
return undefined;
else
return array_shift(global.available_targets);
}
- 24.6.0 - Created a function to check if an array is empty.