fromBomh2 days agoJS Dark Arts: Abusing prototypes and the Result typeWe'll add a method to all functions named try, which will execute this inside a try...catch block, converting the return value to a Result type.