• 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 15: Line 15:  
     end
 
     end
 
   end
 
   end
   return false
+
   return nil
 +
end
 +
 
 +
function Module.findBy(tbl, fn)
 +
  for k, v in pairs(tbl) do
 +
    if fn(v, k) then
 +
      return v, k
 +
    end
 +
  end
 +
  return nil
 
end
 
end
    
return Module
 
return Module
cssedit, gkautomate
7,064

edits

Navigation menu