mirror of
https://github.com/mistricky/codesnap.nvim.git
synced 2025-01-03 15:37:29 -08:00
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
|