DEV Community

Discussion on: Avoid use IF on our JS scripts

Collapse
 
damxipo profile image
Damian Cipolat

thanks for comments! the idea was make an arrow function that return an object. I had thought about this option too, it is more semantic but much more code. It is in each developer as you feel more comfortable.