Skip to content

Instantly share code, notes, and snippets.

@padolsey
Created November 30, 2009 19:53
Show Gist options
  • Select an option

  • Save padolsey/245691 to your computer and use it in GitHub Desktop.

Select an option

Save padolsey/245691 to your computer and use it in GitHub Desktop.
function getSomething( a, b, c ) {
// Multiple return points aren't always bad ya' know!
if ( !(a && b && c) ) { return; }
// Continue with function,
// we know a, b and c are truthy values!
return /* whatever */;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment