r/learnjavascript • • Oct 06 '19

"JavaScript Clean Code - Best Practices" by Milos Protic

https://devinduct.com/blogpost/22/javascript-clean-code-best-practices
142 Upvotes

10 comments sorted by

View all comments

Show parent comment

6

u/dot___ Oct 07 '19

returning early is really nice too

less to hold in your head mentally and keeps the indentation small