Can a getter return a thunk or value depending on the type call call (virt. property or function)?

I know this a weird question, but I’ll ask it anyway. The pseudo code function below provides a virtual property getter. What it should do is this: > const calc = Calculator(3) > calc.multiple // returns getter result directly 6 > calc.multiple(4) // returns thunk result, thus behaves like a function 12 Here’s my pseudo… Read More Can a getter return a thunk or value depending on the type call call (virt. property or function)?