cc-automation/util.lua
2025-05-15 02:16:23 +02:00

28 lines
504 B
Lua

local util = {}
function util.deepEqual(a, b)
local varType = type(a)
if varType ~= type(b) then
return false
end
if varType == "table" then
for key,_ in pairs(b) do
if a[key] == nil then
return false
end
end
for key,value in pairs(a) do
if not util.deepEqual(value, b[key]) then
return false
end
end
return true
end
return a == b
end
return util