Skip to content

Destructuring Arrays as function args #376

Closed
@iansinnott

Description

@iansinnott

When destructuring an array within a function definition I'm seeing the array brackets getting highlighted as jsFuncArgs. However, object destructuring seems to work fine:

function([ history, startTimeToken, endTimeToken ]) {
  //     ^                                       ^
  //     jsFuncArgs                              jsFuncArgs
}

function({ history, startTimeToken, endTimeToken }) {
  //     ^                                       ^
  //     jsFuncArgDestructuring                  jsFuncArgDestructuring
}

Any thoughts on what's going on here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions