DEV Community

Discussion on: How would you refactor this JS function?

Collapse
 
lgrammel profile image
Lars Grammel • Edited

The renaming idea + introducing types is great!

To me, the method seems to be more of a print than a parse method (but I don't have the full context, just saw it in isolation).