4 ms·
Early return ifs are great. I usually just transform functions with 2+ if statements into functions without `if` statements by extracting `if` statements into
by knuthsat 6y ago
Early return ifs are great.
I usually just transform functions with 2+ if statements into functions without `if` statements by extracting `if` statements into other smaller functions where I can write it with an early return.
Looks great.