Created
April 18, 2014 09:22
-
-
Save praveenpuglia/11033771 to your computer and use it in GitHub Desktop.
Returns an array of methods contained within an object.
This file contains 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
console.log(function(a){ | |
return Object.getOwnPropertyNames(a).filter(function(b){ | |
return"function"==typeof a[b]} | |
)}(YOUR_MODULE) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment