Skip to content

Commit 9c58fbc

Browse files
committed
update deep_copy method to use is_table function
1 parent 04ce5d8 commit 9c58fbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

array.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ array = {
266266
deep_copy = function(value)
267267
local output = value
268268

269-
if type(value) == 'table' then
269+
if is_table(value) then
270270
output = {}
271271

272272
for i=1, #value do

0 commit comments

Comments
 (0)