args-list

Extract method arguments names into array.

Args list

Extract method arguments names into array. Commonly used for dependency injection.

npm install args-list --save
component install scottcorgan/args-list
bower install args-list --save
 
var argsList = require('args-list');
 
function someMethod (arg1arg2arg3) {
  // do something here 
}
 
var list = argsList(someMethod); // Outputs ['arg1', 'arg2', 'arg3']