tableIsArraySlow
Definition
-- @/lua/common/utils.lua:583
function tableIsArraySlow(tbl)
local tblSize = #tbl
for k, _ in pairs(tbl) do
if type(k) ~= 'number' or k < 1 or k > tblSize then return false end
end
return true
end
Callers
@/lua/common/utils.lua
if type(v) == "table" and type(t1[k]) == "table" then
if tableIsArraySlow(t1[k]) and tableIsArraySlow(v) then
-- Concatenate arrays
if type(v) == "table" and type(t1[k]) == "table" then
if tableIsArraySlow(t1[k]) and tableIsArraySlow(v) then
-- Concatenate arrays
-- Copy the table (array or associative)
if tableIsArraySlow(v) then
t1[k] = {}