Skip to content

ES: Allow deconstructing objects with splats #3894

@flying-sheep

Description

@flying-sheep

…for parity with ECMA7. currently we can’t do this:

x =
  a: 1
  b: 2
  c: 3

{ a, b, y... } = x
# or
{ a, b, ...y } = x

console.log a, b, y  # → 1 2 {c:3}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions