Javascript delete keyword deletes a named variable slot from nearest execution environment which it defined.
What’s the equivalent in Lua?
Javascript delete keyword deletes a named variable slot from nearest execution environment which it
Share
Environments in Lua are tables, and tables cannot contain nil value – assigning nil to a key in a table effectively deletes that key from the table.
Here is a quote from “Programming in Lua”: