• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
no edit summary
Line 6: Line 6:  
function Utils.find(tbl, v_, k_)
 
function Utils.find(tbl, v_, k_)
 
for _, v in pairs(tbl) do
 
for _, v in pairs(tbl) do
if k_ 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 true
+
return v
 
end
 
end
 
end
 
end
cssedit, gkautomate
7,064

edits

Navigation menu