Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 261 Bytes

README.md

File metadata and controls

18 lines (11 loc) · 261 Bytes

parse-fn-args

Parses function arguments.

Usage

var parse = require('parse-fn-args')

function fn (a, b, c) {}

var args = parse(fn) // -> ['a', 'b', 'c']

parse((a, b) => a + b) // -> ['a', 'b']

parse(a => a) // -> ['a']