If the given value is a function, calls the function with the given args.
Otherwise it just returns value.
up.util.evalOption(5) // => 5
let fn = () => 1 + 2
up.util.evalOption(fn) // result: 3
Tip Your coding agent can search these docs locally with the Unpoly agent skill