if (someEdgeCase) {
return SpecialValue;
const normalCase = a + b ...
It allows you to drop a case from working memory as early as possible. I believe this would be a +1 in cyclomatic complexity, but it shouldn't be. Cyclomatic complexity is not the whole story (nor do I think it tries to be).
if (someEdgeCase) {
}const normalCase = a + b ...
It allows you to drop a case from working memory as early as possible. I believe this would be a +1 in cyclomatic complexity, but it shouldn't be. Cyclomatic complexity is not the whole story (nor do I think it tries to be).