diff --git a/sonic-radiance.love/core/utils/table.lua b/sonic-radiance.love/core/utils/table.lua index 46cd624..90064a6 100644 --- a/sonic-radiance.love/core/utils/table.lua +++ b/sonic-radiance.love/core/utils/table.lua @@ -24,6 +24,15 @@ local Table = {} +function Table.contain(table, content) + for k, v in ipairs(table) do + if (v == content) then + return true + end + end + return false +end + function Table.reduce(list, fn) local acc for k, v in ipairs(list) do