DEV Community

loading...

Discussion on: Refactoring: My 6 favorite patterns

brycedooley profile image
Bryce Author

Thanks, Abdul. Could you provide an example of what the code might look like? Most factory functions I've seen still involve a switch statement or a series of if/else statements.