You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
objectBindingPattern represents something like { foo, bar }. bindingElement represents the element I want to be removed, like bar. block represents the block where the statement containing bindingElement is defined. varaibleStatement represents something like const { foo, bar } = baz.
Is your feature request related to a problem? Please describe.
I want to be able to remove a property from a destructuring assignment of an object.
Here is an example of an input and what I want as an output:
Describe the solution you'd like
I want to be able to choose one
BindingElement
from the children of aObjectBindingPattern
node and callBindingElement.remove()
on it.Describe alternatives you've considered
While waiting for this, I will probably have to remove the
VariableStatement
in its entirety and add a new one with only the properties I need.The text was updated successfully, but these errors were encountered: