Updated table has to be more clear

This commit is contained in:
sloumdrone 2019-01-18 18:18:46 -08:00
parent 051feeed61
commit 0d07b8c95e
1 changed files with 2 additions and 1 deletions

3
stubb
View File

@ -47,8 +47,9 @@ function table.out(t)
end
-- Checks to see if an autoindexed table has a value
table.has = function(t, item)
for i, v in pairs(t) do
for _, v in ipairs(t) do
if v == item then
return true
end