DEV Community

Suren
Suren

Posted on Originally published at waspdev.com on

Is throwing an exception a faster way to break out of recursion in JavaScript?

Exceptions are designed for error handling. But what if use exceptions as a fast way to break out of recursion?

Is throwing an exception a faster way to break out of recursion in JavaScript?

Top comments (0)