Module:Utils: Difference between revisions
CompactStar (talk | contribs) No edit summary |
CompactStar (talk | contribs) No edit summary |
||
Line 209: | Line 209: | ||
-- Check if a table contains x | -- Check if a table contains x | ||
function p.table_contains(tbl, x) | |||
found = false | found = false | ||
for _, v in pairs(tbl) do | for _, v in pairs(tbl) do |