Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ES7 Object rest/spread properties #4928

Closed
mhegazy opened this issue Sep 22, 2015 · 1 comment
Closed

Support ES7 Object rest/spread properties #4928

mhegazy opened this issue Sep 22, 2015 · 1 comment

Comments

@mhegazy
Copy link

@mhegazy mhegazy commented Sep 22, 2015

Here is the ES7 proposal:
https://github.com/sebmarkbage/ecmascript-rest-spread

Rest Properties

let { x, y, ...z } = { x: 1, y: 2, a: 3, b: 4 };
x; // 1
y; // 2
z; // { a: 3, b: 4 }

Spread Properties

let n = { x, y, ...z };
n; // { x: 1, y: 2, a: 3, b: 4 }
@DanielRosenwasser
Copy link
Member

@DanielRosenwasser DanielRosenwasser commented Sep 22, 2015

Duplicate of #2103.

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.