1 Comment
User's avatar
Anderson Caxeta's avatar

Excellent point! I normally handle this kind of validation with a guard clause, but this approach is a much better way to achieve concision. Thanks for sharing, Thiago!

Expand full comment