Concord/concord/utils.lua
2020-01-04 10:50:13 +01:00

15 lines
No EOL
319 B
Lua

--- Utils
-- Helper module for misc operations
local Utils = {}
--- Does a shallow copy of a table and appends it to a target table.
-- @param orig Table to copy
-- @param target Table to append to
function Utils.shallowCopy(orig, target)
for key, value in pairs(orig) do
target[key] = value
end
end
return Utils