mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-09-01 20:03:55 -04:00
15 lines
No EOL
319 B
Lua
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 |