Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:Core
(view source)
Revision as of 09:39, 9 December 2017
3 bytes added
,
6 years ago
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