Created
October 26, 2013 01:56
-
-
Save ifnull/7164421 to your computer and use it in GitHub Desktop.
List all functions on a page.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var functionNames = []; | |
for (var f in window) if (window.hasOwnProperty(f) && typeof window[f] === 'function') | |
{ | |
functionNames.push(f); | |
} | |
console.log(functionNames); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment