Skip to content

Instantly share code, notes, and snippets.

@praveenpuglia
Created April 18, 2014 09:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save praveenpuglia/11033771 to your computer and use it in GitHub Desktop.
Save praveenpuglia/11033771 to your computer and use it in GitHub Desktop.
Returns an array of methods contained within an object.
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