DEV Community

Discussion on: Why we shouldn't use "else"

Collapse
bonespiked profile image
bonespiked

early return is good - but as a nitpicky thing, verification stuff should be done together so you can inform the user of all the errors at once, rather than hitting them with a stick, one error at a time....