summaryrefslogtreecommitdiffstats
path: root/acf/util.lua
diff options
context:
space:
mode:
Diffstat (limited to 'acf/util.lua')
-rw-r--r--acf/util.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/acf/util.lua b/acf/util.lua
index cc44fc2..63276ec 100644
--- a/acf/util.lua
+++ b/acf/util.lua
@@ -23,6 +23,11 @@ function copy(var)
return type(var) == 'table' and setdefaults({}, var) or var
end
+function extend(dst, src)
+ for _, v in ipairs(src) do table.insert(dst, v) end
+ return dst
+end
+
function keys(tbl)
local res = {}
for k, v in pairs(tbl) do table.insert(res, k) end