9 lines
194 B
Lua
9 lines
194 B
Lua
-- Function to check if a string is in the table
|
|
function table.contains(table, element)
|
|
for _, value in ipairs(table) do
|
|
if value == element then
|
|
return true
|
|
end
|
|
end
|
|
return false
|
|
end
|