codesnap.nvim/lua/codesnap/utils/table.lua

18 lines
235 B
Lua
Raw Normal View History

2024-02-13 06:05:36 +00:00
local table_utils = {}
function table_utils.assign(t, props)
for k, v in pairs(props) do
t[k] = v
end
end
function table_utils.merge(t1, t2)
for k, v in pairs(t2) do
t1[k] = v
end
return t1
end
return table_utils