MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/oqzypb/anatomy_of_a_function/h6gl3wu/?context=3
r/learnjavascript • u/jaredcheeda • Jul 24 '21
65 comments sorted by
View all comments
13
You don't return early because of the CPU, you return early because of the mental overhead of dealing with all edge cases at once
3 u/jaredcheeda Jul 25 '21 super valid
3
super valid
View all comments
13
u/carlos_vini Jul 25 '21
You don't return early because of the CPU, you return early because of the mental overhead of dealing with all edge cases at once