by theprotocol · 9y ago · 0 comments
In ES6+ `try/catch` already offers similar scoping, albeit without the destructuring of the result being a part of the syntax (you declare the response, preferably as a `const`, at the top of the try/catch block).