table.is_empty

Returns whether a table contains any key.

Usage

table.is_empty(my_table)

Arguments

Name Type Description
my_table table Table to look for a value in.

Returns

Name Type Description
empty boolean True if the table is empty, false otherwise.

Examples

print(table.is_empty({})); -- Prints "true"
print(table.is_empty({ 1, 2, 3 })); -- Prints "false"

This site uses Just the Docs, a documentation theme for Jekyll.