How to display all JavaScript global variables with static code analysis?
问题 I know that I can type into Chrome or FF the following command: Object.keys(window); but this displays DHTMLX stuff and also function names in which I'm not interested in. And it doesn't display variables in functions that have not been executed yet. We have more than 20,000 lines of JavaScript codebase, so I would prefer static code analyis. I found JavsScript Lint. It is a great tool but I don't know how to use it for displaying global vars. So I'm searching for memory leaks, forgotten var