Sat, 19th Dec 2020, 07:07

Nice trick! And I concur with the try/catch sentiment.

const res = await promiseFn().catch(() => defaultValue)

i dislike try/catch i won’t use it unless i have to.

— Claudio Semeraro (@keepitterron) December 18, 2020

Comments