Files
gameserver/RCCService2020/ExtraContent/LuaPackages/Packages/_Index/tutils/tutils/tableDifference.lua
T
2026-07-06 14:01:11 -04:00

16 lines
282 B
Lua

--[[
Takes two tables A and B, returns a new table with elements of A
which are either not keys in B or have a different value in B
]]
return function(A, B)
local new = {}
for key, value in pairs(A) do
if B[key] ~= A[key] then
new[key] = value
end
end
return new
end