Detect unused JavaScript methods in VSCode

Viewed 1566
1 Answers

You seem to be asking about class methods rather than functions. If that is the case it is basically impossible because all class methods are public in JS.

If you want to do this then you really need to switch to a functional style of programming or define private code outside of your public classes.

Related