DEV Community

Discussion on: Probably the hottest code refactoring you ever saw 🔥

Collapse
 
kelerchian profile image
Alan • Edited

Unless formatMap is something that needs to be dynamic, I suggest not to do this.

This mixes up type and data and also smells like premature abstraction.