DEV Community

Discussion on: Early Returns in JavaScript

Collapse
 
vshyrokov profile image
Viktor Shyrokov

I think it's pretty useful, because you don't have to go through every condition and in the end send the same result. Who knows what other problems could be there(unit tests, helps to overcome it).