This code structure is called an arrow anti-pattern. How to fix this code?
This is a solution. Switch statement is ok, too.
@ozanyrc I would categorize it as a variation of the hadouken pattern 😂
@ozanyrc Use a switch expression.