Created
August 22, 2022 10:04
-
-
Save Amir-A-M/f17ab301bc1935f0e253834fcb0dfb81 to your computer and use it in GitHub Desktop.
Sometimes Return Early Is Subjective
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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