1 min readNov 16, 2019
I’ve also seen return false / true in the if statements. The only advantage of having an if over directly returning boolean is a better visibility of test coverage per branch.
I’ve also seen return false / true in the if statements. The only advantage of having an if over directly returning boolean is a better visibility of test coverage per branch.