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 18:09, 7 April 2018
166 bytes added
,
6 years ago
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