42

I have around 100 .js files in my application. I need to find the unused functions from these files.

Which editor or tool can help me?

zombat
  • 90,260
  • 24
  • 155
  • 163
user143442
  • 429
  • 1
  • 4
  • 3
  • 1
    I dont' this there is a way to do it completely. Check this question : http://stackoverflow.com/questions/1167663/is-there-a-tool-to-remove-unused-methods-in-javascript – Shoban Jul 23 '09 at 06:58
  • Possible duplicate of [Is there a tool to remove unused methods in javascript?](https://stackoverflow.com/questions/1167663/is-there-a-tool-to-remove-unused-methods-in-javascript) – aug May 15 '18 at 18:37

2 Answers2

9

Give a look to the JSLint code quality tool.

JohnnyHK
  • 290,447
  • 61
  • 595
  • 453
Christian C. Salvadó
  • 769,263
  • 179
  • 909
  • 832
1

You can do this using Jsure, a Javascript lint implementation. You'll be looking for the -unused-funs flag

JohnnyHK
  • 290,447
  • 61
  • 595
  • 453