Comment on Async/await support in FirefoxparentComments−bryanh9yYou could always do something like: const maybe = await fetch(url).catch(err => err); But, I can understand that being a bit icky for some... but in a few cases it could make sense and is pretty concise: const hits = await cache.incr(key).catch(err => 0);
Comments
You could always do something like:
But, I can understand that being a bit icky for some... but in a few cases it could make sense and is pretty concise: