goatslacker / get-parameter-names

Retrieves the argument names of a function

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status NPM version Dependency Status

get-parameter-names

Retrieves the argument names of a function

Install

npm install get-parameter-names

Usage

function foo(bar, baz) {
  return bar + baz
}

var get = require('get-parameter-names')
get(foo) // = ['bar', 'baz']

Tests

npm test

License

MIT

About

Retrieves the argument names of a function


Languages

Language:JavaScript 100.0%