mirror of
https://github.com/akyaiy/GoSally-mvp.git
synced 2026-01-03 19:52:25 +00:00
22 lines
391 B
Lua
22 lines
391 B
Lua
-- File com/Access/_common.lua
|
|
--
|
|
-- Created at 2025-21-10
|
|
--
|
|
-- Description:
|
|
--- Common functions for Unit module
|
|
|
|
local common = {}
|
|
|
|
function common.CheckMissingElement(arr, cmp)
|
|
local is_missing = {}
|
|
local ok = true
|
|
for _, key in ipairs(arr) do
|
|
if cmp[key] == nil then
|
|
table.insert(is_missing, key)
|
|
ok = false
|
|
end
|
|
end
|
|
return ok, is_missing
|
|
end
|
|
|
|
return common |