-
-
Save cty41/162e9550bf0f20b70037b1420292ab66 to your computer and use it in GitHub Desktop.
efficient way to determine if a Lua table is empty (contains no entries)?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if next(myTable) == nil then | |
-- myTable is empty | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment