Nearsighted Paramecium Multiverse
Join us to discuss the challenges, solutions and best practices for in-house JavaScript code sharing. Tuesday, 12/17 at 10am PT/1pm ET.Sign up here »

get-func-parameters

1.0.0 • Public • Published

get-func-parameters

获取函数形参个数。 Obtaining the number of function parameters.

install

npm install --save get-func-parameters

use

const getFuncParameters = require('get-func-parameters');
 
function func(a,b,c,d){
    return a+b*c*d
}
//参数 functionName
getFuncParameters(func);
 
// 输出 =>
["a", "b", "c", "d"]

Install

npm i get-func-parameters

DownloadsWeekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

1.88 kB

Total Files

3

Last publish

Collaborators

  • avatar