npm.io
1.0.4 • Published 8 years ago

get-func-args

Licence
ISC
Version
1.0.4
Deps
0
Vulns
0
Weekly
0

get-func-args

This package is used to get function arguments for all function types.

Example

const getFuncArgs = require('get-func-args');
function f(a, b, { c, d = 2 }, e, f = 1) {
}
const args = getFuncArgs(f); // [ 'a', 'b', '{ c, d = 2 }', 'e', 'f = 1' ]

New features soon (arguments formatting)

Keywords