Advanced JavaScript: Throw multiple errors at the same time
The first of a series of articles dedicated to advanced techniques to write robust, maintainable and future-proof JavaScript
The technique
Many do not know that in JavaScript you can throw multiple errors at the same time.
throw [
new Error("First error"),
new Error("Another error")
]
Advanced JavaScript
This technique is part of a series of articles Iām writing, focused on advanced usages of JavaScript.
If you want to learn to be advanced, subscribe the newsletter below.