Skip to content

Glossary: Refactoring and Clean Code

early return

Leaving a function straight away with `return` when a special case applies. It's the mechanism behind guard clauses.

Where the book teaches it

Related terms

Guard clause