Coderwall
Ruby Python JavaScript Front-End Tools iOS
More Tips
Ruby Python JavaScript Front-End Tools iOS PHP Android .NET Java Jobs
Jobs
Sign In or Up
Last Updated: February 25, 2016
·
690
· elmendalerenda

Guard Clause

#refactoring
#conditional
#javascript

http://www.becodemyfriend.com/2012/09/guard-clauses/

#refactoring
#conditional
#javascript

Written by Miguel Ángel Fernández

Say Thanks
Respond

Related protips

jQuery - a little selector and code refactoring

3.457K
2

2 nice techniques to refactor Mojolicious controllers

2.918K
0

Getting Empirical About Complexity in Templates

2.845K
0

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Best #Refactoring Authors
hennson
3.458K
#refactoring
#wireframes
#ux
codeholic
2.918K
#refactoring
#Perl
#C
jamesmartin
2.845K
#refactoring
#Ruby
#CSS
hauleth
2.235K
#refactoring
#Ruby
#CSS
flemon
1.097K
#refactoring
#Ruby
#Open Source
Related Tags
#refactoring
#conditional
#javascript
Sponsored by
#native_company#
#native_desc#
#native_cta#
Filed Under

Javascript Tips to Beat the DOM Into Submission
Awesome Job
See All Jobs

Post a job for only $299
Thanks to our sponsor
Sponsored by #native_company# — Learn More
#native_title# #native_desc#
#native_cta#
@coderwall
APM product comparisons Contact Privacy Terms

Copyright 2025

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.