Skip to content

Instantly share code, notes, and snippets.

@Amir-A-M
Created August 22, 2022 10:04
Show Gist options
  • Select an option

  • Save Amir-A-M/f17ab301bc1935f0e253834fcb0dfb81 to your computer and use it in GitHub Desktop.

Select an option

Save Amir-A-M/f17ab301bc1935f0e253834fcb0dfb81 to your computer and use it in GitHub Desktop.
Sometimes Return Early Is Subjective
function returnStuff(argument) {
if(!argument.isValid()) {
return;
}
return "Stuff";
}
function returnStuff(argument) {
if(argument.isValid()) {
return "Stuff";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment