loading...

re: If/else or just if? VIEW POST

TOP OF THREAD FULL DISCUSSION
re: In this case, both examples are the exact same of course. This is somewhat related to a single return statement in a function, but the syntax of a...

Consistency is definitely most important. I just did a search through an API that I built recently, and I only have 3 else statements which I can probably refactor out. So, I think it's definitely possible to go all-in on early returns.

code of conduct - report abuse