Sorry, we don't support your browser.  Install a modern browser

add Clone copy to the Table section in lua#3016

function CloneData(data)
if type(data) ~= “table” then
return data
end
local copy = {}
for k,v in pairs(data) do
if type(v) == “table” then
copy[k]= CloneData(v)
else
copy[k]=v
end
end
return copy
end

i would like to use it like

local newVar = Table.Clone(Parameters)

3 months ago