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...

Markdown supported · ⌘↵ to post
Uria Rogel
I completely agree! Also wasn't aware that I can use '_' in numbers without breaking them.
Thanks for sharing