We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a28318f commit 6645a4aCopy full SHA for 6645a4a
1 file changed
nattlua/other/shallow_copy.lua
@@ -1,3 +1,7 @@
1
+local ok, clone = pcall(require, "table.clone")
2
+
3
+if ok then return clone end
4
5
local function shallow_copy(tbl)
6
local copy = {}
7
0 commit comments