Is there a way I can define custom method on this "function"?

well, you can’t have short circuit behavior on a normal function, that’s why you can’t override ||, it’s not just a normal function

1 Like