parse-fn-args
v1.0.1
Published
parse-fn-args =============
Downloads
315
Readme
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']