goatslacker / get-parameter-names

Retrieves the argument names of a function
46 stars 13 forks source link

Pull request #7 doesn't handle (c = (err, data)=>{}) #11

Open eddyystop opened 7 years ago

eddyystop commented 7 years ago

I don't want this comment "lost" in pull #7 where I originally put it.

https://github.com/benbotto/get-parameter-names 0.3.2 still has the following problem: ( a = 1 , b=2, c = (err, data)=>{}) => {} returns ['a', 'b', 'c', 'data']

CaptEmulation commented 7 years ago

For anyone that lands here you can use my fork which resolves this issue: npm i @captemulation/get-parameter-names