repositories / dotfiles
dotfiles
bugabingas dorkfiles
owned by bugabinga
neovim/lua/std/table/deep_copy.lua
RawFile outline
local function deep_copy(any)
if type(any) ~= 'table' then return any end
local result = {}
for key, value in pairs(any) do
result[key] = deep_copy(value)
end
return result
end
return deep_copy