mirror of
https://github.com/sr229/metastruct-experiments.git
synced 2024-09-20 06:30:36 +00:00
11 lines
No EOL
207 B
Lua
11 lines
No EOL
207 B
Lua
tbl_utils = {}
|
|
|
|
|
|
tbl_utils.contains = function (table, element)
|
|
for _, value in pairs(table) do
|
|
if value == element then
|
|
return true
|
|
end
|
|
end
|
|
return false
|
|
end |