Object.is_empty
Object.is_empty
Function
Determine whether the object is empty.
Syntax
object.is_empty()
Parameters
None.
Return value
| Type | Description |
|---|---|
| Bool | Returns true if there is no key-value pair, otherwise returns false. |
Code Example
result = {}.is_empty() // Output: true print result
Notes
- Only determine the number of key-value pairs of the object itself.