table

table.table.deep_copy

Declaration
lua
table.deep_copy(t)
Description
Deep copy a table with cycle detection. Preserves metatables.
Parameters
NameTypeRequiredDefaultDescription
tanyRequired—Value to copy
Return Values
TypeDescription
anyDeep copy
Example
lua
local copy = table.deep_copy(original)