Finding unused Javascript functions

Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
The problem is that there are several js files full of functions. The functions are quite diverse, just dumped in a heap.

They can be used in other js modules, can be written directly in html templates, and can appear in the php source code.

Need to find functions that accurately never called.

In fact, the task is simple — to parse these files to determine the functions, then parse another bunch of files on the subject occurrences of names. To give a list of those that were not found or found but very little.

In principle it is not difficult to write, but suddenly there is such Tulsa?
by | 6 views

2 Answers

0 like 0 dislike
IDE phpStorm this is a development environment
0 like 0 dislike
Absolute certainty as to the automatic method not give.
obj['method_' + name]();
110,608 questions
257,186 answers
28,135 users