1. 12
  1.  

      1. 2

        Alternatively you can do return fn().catch((e) => ...); if you don’t like using try+catch.

        1. 2

          This is especially useful in bigger function that tend to undergo refactorings. And the try/catch gotcha imo is the worst understood part of JS as of today leading to an almost one per 1000 LOC in my experience.