Socket
Socket
Sign inDemoInstall

get-func-parameters

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    get-func-parameters

get the function parameters


Version published
Weekly downloads
2
Maintainers
1
Install size
1.84 kB
Created
Weekly downloads
 

Readme

Source

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"]

Keywords

FAQs

Last updated on 25 Jul 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc