DEV Community

Discussion on: DevTips: Use early returns to avoid nested conditions

Collapse
 
murrayvarey profile image
MurrayVarey

Completely agree! Otherwise you can end up with an Arrow Head -- code where the important stuff is (a) hidden in the middle of the function, and (b) to the far right of the screen.