get-func-args

1.0.4 • Public • Published

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)

Readme

Keywords

Package Sidebar

Install

npm i get-func-args

Weekly Downloads

4

Version

1.0.4

License

ISC

Last publish

Collaborators

  • jshehu