1.0.4 • Published 6 years ago

get-func-args v1.0.4

Weekly downloads
34
License
ISC
Repository
github
Last release
6 years ago

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)