4 ms·
This is interesting. Does it have any performance impact?
by optimistprime 3y ago
This is interesting. Does it have any performance impact?
- musicq 3y agoDon't think would affect performance. The core function `wrap` is just try catch under the hood. https://github.com/musicq/unwrapit/blob/d5c437a235ad1f5ad042a18e6f04ae90e3fc1d28/src/result.ts#L159-L184 https://github.com/musicq/unwrapit/blob/d5c437a235ad1f5ad042...
- optimistprime 3y agoiirc, try catch does have performance impact in js.