1.0.1 • Published 6 years ago
fnc-args v1.0.1
fnc-args
Get a function's arguments in JS
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']