The typing might make more sense, but if there happens to be a point where it isn’t the typing you expect, wouldn’t || help correct for that and make sure it comes back to the correct type?
If you've got false where you expect a function reference, you'd want to find out about it sooner rather than later. When you try execute run() and the browser complains that false isn't a function, that may be easier to debug than simply, "why is the wrong function running?"
4
u/Koala_King_ Apr 23 '21
The typing might make more sense, but if there happens to be a point where it isn’t the typing you expect, wouldn’t
||help correct for that and make sure it comes back to the correct type?