Array.is_empty
Array.is_empty
Function
Determine whether the array is empty.
Syntax
array.is_empty()
Parameters
None.
Return value
| Type | Description |
|---|---|
| Bool | Returns true for an empty array, false otherwise. |
Code Example
result = [].is_empty() // Output: true print result
Notes
- Only the number of elements is judged, and the element content is not checked recursively.