DEV Community

Discussion on: Stop using if else

Collapse
 
pachverb profile image
new/bird

good,jobs. This idea is very good. Dictionary way, okay. The usage scenario in this way is to switch between different branches according to the incoming value. At that time, if you don’t pass in a value, you need to switch to a different branch, how to do ?

Some comments have been hidden by the post's author - find out more