Code Smell 201 - Nested Ternaries
TL;DR: Don't use nested IFs or nested ternaries
Problems
Readability
Default Case
Solutions
Rewrite the code as an IF condition with an early return
Context
Nesting is always a problem with complexity.
We can fix it with polymorphism or early...
maximilianocontieri.com2 min read
Uria Rogel
I completely agree! Also wasn't aware that I can use '_' in numbers without breaking them.
Thanks for sharing