Skip to main content

is_empty(value)

Signature: is_empty(value: Any) -> bool

Returns true if value is null/None or an empty container (string/list/dict/set/tuple).

Example

function example() returns null {
print(is_empty("")); # true
print(is_empty([])); # true
}

Notes

  • For non-container values, returns false.