Use early exits and don’t use else
Code almost never needs the else keyword. It can be written in a way to use early exits with return or continue instead. This following code could have been written with an else. This rule keeps the main/happy path of the code on the main level of th...
khangnhd.hashnode.dev1 min read