Skip to content

Destructure of function parameters - Refactoring #24827

Open
@lukaszpolowczyk

Description

@lukaszpolowczyk
const calllback = event=> {
   let {target} = event;
   // code with used target
}

to

const calllback = ({target})=> {
   // code with used target
}

Same in the opposite direction and with a more complex and deep destructure and function content.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: Refactoringse.g. extract to constant or function, rename symbolNeeds ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.SuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions