
8 Code Assists for Object and Array Destructuring
- Convert destructuring to regular variable declaration
Convert all variables that are declared via destructuring into separate regular variable declarations.
- Convert to destructuring assignment
Convert a variable declaration that accesses an object property to a destructuring assignment.
- Merge into preceding destructuring assignment
Combine an object destructuring assignment with its preceding sibling.
- Move destructuring array element
Move an element inside an array destructuring expression up or down.
- Extract destructured expression into separate variable declaration
Move a destructured expression inside a variable declaration into a separate variable declaration.
- Move destructuring object property
Move a property inside an object destructuring expression up or down.
- Push variable declaration into initial value
Inlines a variable that is initialized with another variable into the declaration of that variable.
- Remove trailing array destructuring holes
Remove trailing array destructuring holes and empty array destructuring expressions.