Changes

no edit summary
Line 8: Line 8:  
if k_ and v and v[k_] == v_ or not k_ and v == v_ then
 
if k_ and v and v[k_] == v_ or not k_ and v == v_ then
 
return v
 
return v
 +
end
 +
end
 +
return false
 +
end
 +
 +
function Utils.includes(tbl, v_, k_)
 +
for _, v in pairs(tbl) do
 +
if k_ and v and v[k_] == v_ or not k_ and v == v_ then
 +
return true
 
end
 
end
 
end
 
end
cssedit, gkautomate
7,064

edits