Skip to content

table.remove

Equal to the native table.remove of lua but accept string as position

Argument Data Type Needed Default Description
Table table - The table
Position number/string - The position of the data to remove

Dont need to be called every frame


Example
local tabletocheck = {
    ["Hello"] = 5,
    ["Utility"] = 1,
}

table.remove(tabletocheck, "Hello")

print(json.encode(tabletocheck))
Expected result

{"Utility":1}


Last update: April 12, 2022
Created: June 27, 2021