DEV Community

Discussion on: How would you refactor this JS function?

Collapse
 
eslynn profile image
lynn

I'd just rename it and call it lineFormatter, and add comments about sample inputs and outputs.