mod-cleaner/misc_functions.lua
2021-05-18 20:11:38 -07:00

20 lines
224 B
Lua

local function clean_duplicates(t)
local tmp = {}
for _, v in ipairs(t) do
tmp[v] = true
end
t = {}
for k in pairs(tmp) do
table.insert(t, k)
end
return t
end
return {
clean_duplicates = clean_duplicates,
}