DEV Community

Discussion on: JS Refactoring Combo: Simplify Duplicated Function Call Inside If-Else Statement

Collapse
 
lgrammel profile image
Lars Grammel

As mentioned in the other comment, manual re-typing is 2x as fast. The advantage of using a tool is to prevent mistakes, e.g. when you think you could refactor some code, but missed a small difference and as a result introduced a regression.