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
Labels
Duplicate An existing issue was already created ES7 Relates to the ES7 Spec In Discussion Not yet reached consensus Suggestion An idea for TypeScript

Comments

@mhegazy
Copy link
Contributor

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 }
@mhegazy mhegazy added Suggestion An idea for TypeScript In Discussion Not yet reached consensus ES7 Relates to the ES7 Spec labels Sep 22, 2015
@DanielRosenwasser
Copy link
Member

Duplicate of #2103.

@DanielRosenwasser DanielRosenwasser added the Duplicate An existing issue was already created label Sep 22, 2015
@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.
Labels
Duplicate An existing issue was already created ES7 Relates to the ES7 Spec In Discussion Not yet reached consensus Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

2 participants