allow getval to take and pass params

develop
Myk Taylor 2023-04-10 03:37:10 -07:00
parent 0d18943e67
commit 07c83d3bf3
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

@ -2,9 +2,9 @@ local _ENV = mkmodule('utils')
local df = df local df = df
function getval(obj) function getval(obj, ...)
if type(obj) == 'function' then if type(obj) == 'function' then
return obj() return obj(...)
else else
return obj return obj
end end