I think the real value of the Map approach is that it follows the open/close principle. You could pass the map into your function instead of adding if statements directly in the function whenever a new business requirement surfaces
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I think the real value of the Map approach is that it follows the open/close principle. You could pass the map into your function instead of adding if statements directly in the function whenever a new business requirement surfaces