view source
Finding duplicate JavaScript code
Duplicate code is a sequence of source code that occurs more than once. Having duplicate code in a codebase is often a bad practice, because repetition usually introduces bugs and makes the code more difficult to maintain. It is worth mentioning that duplicate code is not always the same code. Duplicate code comes in many forms and more often than not we see the same expressions or structure, but with different values or variable names.
Advertisement