forked from mirror/codesnap.nvim
17 lines
235 B
Lua
17 lines
235 B
Lua
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
|