Live data from Hacker News

Unwrapit provides a way to handle errors in JS/TS

musicq.gitbook.io

71–72 of 72 posts

Re: Unwrapit provides a way to handle errors in JS/TS

#71

Would be nice if this didn't have a dependency on rxjs just for a single use of Observable

You might like https://github.com/vultix/ts-results -- no dependencies. (Beware maintainer is not active, https://github.com/vultix/ts-results/issues/37)

Re: Unwrapit provides a way to handle errors in JS/TS

#72
post #51

Earlier quoted context omitted.

This is interesting. Does it have any performance impact?

Don't think would affect performance. The core function `wrap` is just try catch under the hood. https://github.com/musicq/unwrapit/blob/d5c437a235ad1f5ad042...

iirc, try catch does have performance impact in js.
Post reply on HN