Agreed!
I think it also helps in figuring out what a function does. It's easy to see what a function returns--especially in a dynamic language like JS.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I tried to get my functions the least indented possible using early exit.
It also helps readability in my opinion.
So instead of
I do
Agreed!
I think it also helps in figuring out what a function does. It's easy to see what a function returns--especially in a dynamic language like JS.