JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE.md
README.md
index.js
package.json
test.js

README.md

fnc-args

Get a function's arguments in JS

GitHub | NPM

Install

npm i fnc-args

Use

const fncArgs = require('fnc-args')

fncArgs((hey, hi) => {}) // ['hey', 'hi']

fncArgs(function (hey, hi) {}) // ['hey', 'hi']

fncArgs(async (hey, hi) => {}) // ['hey', 'hi']

fncArgs(hey => {}) // ['hey']