One of my favorite tools during a code audit is jscpd
One of my favorite tools during a code audit is jscpd. It detects copy/pasted code.
In a codebase I’m currently reviewing, nearly half of the JS is duplicated!
jscpd lists the specific duplicated spots so we can consider a cleanup.
