goatslacker / goatslacker/get-parameter-names
Support for arguments destructuring
- Dominant language
- JavaScript
- Stars
- 45
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
Could be cool to be able to handle functions with arguments destructuring like that :
function({ prop1, "my-prop2": prop2 = 'default', p3 : { sp1 }, ...rest }, arg2) => {
};
That would produce an array like this for example:
[["prop1", "my-prop2", ["p3", ["sp1"]]], "arg2"]
Or event better with more info:
[{
type: object,
properties: [
{name: prop1},
{name: "my-prop2", as: "prop2", default: "default"},
{name: p3, type: object, properties: ["sp1"]}
]
}]
And why not array destructuring support too ?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.