We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
local company = { boss = "Sam" }
local boss = company["boss"]
local boss = company.boss
This increases readability, but also increases performance as you are not accessing the table constantly.
local concatenation = myTable["key"] .. myTable["key"]
local myTableValue = myTable["key"] local concatenation = myTableValue .. myTableValue
It is not efficient/performant, you should only use this when you need to insert at a specific index.
table.insert(myTable, "value")
myTable[#myTable + 1] = "value"
table.insert(myTable, "key", "value")
myTable["key"] = "value"