Open fostfox opened 5 years ago
function contains(value, array) for i = 1, #array do if array[i] == value then return true end end if type(value) == 'table' then for i = 1, #array do for j = 1, #value do if array[i] == value[j] then return true end end end end return false end
Very long working in our version