JS Error Handling Standards Links

I've been asked to write down some JS error handling standards for work. I'm wondering if anyone knows of any links to articles that talk about error handling in Javascript and what some good standards for it are?
2 Replies
deviana
deviana5mo ago
so many questions about trpc error handling in the app router but no answers
Matvey
Matvey5mo ago
"Errors as values" is the best error handling pattern. You can use a library like ts-results-es to use it in JS.
GitHub
GitHub - lune-climate/ts-results-es: A TypeScript implementation of...
A TypeScript implementation of Rust's Result and Option. - lune-climate/ts-results-es
Want results from more Discord servers?
Add your server