4 ms·
I prefer early returns. It avoids nesting when checking preconditions. However, the function must always return the same type.
by prudentpomelo 3y ago
I prefer early returns. It avoids nesting when checking preconditions. However, the function must always return the same type.