get-parameter-names
Retrieves the argument names of a function
Install
npm install get-parameter-names
Usage
function foo(bar, baz) {
return bar + baz
}
var get = require('get-parameter-names')
get(foo) // = ['bar', 'baz']
Tests
npm test
Retrieves parameter names from a function
Homepage npm JavaScript Download
npm install get-parameter-names@0.0.1
Retrieves the argument names of a function
npm install get-parameter-names
function foo(bar, baz) {
return bar + baz
}
var get = require('get-parameter-names')
get(foo) // = ['bar', 'baz']
npm test