Don't be afraid to expand your code for readability(dev.to)
dev.to
Don't be afraid to expand your code for readability
https://dev.to/daniel/dont-be-afraid-to-expand-your-code-for-readability
https://dev.to/daniel/dont-be-afraid-to-expand-your-code-for-readability
The first conditional is perfectly readable. The expanded version is not!
also the overly verbose version massively increases bug surface!