Skip to content

Support ES7 Object rest/spread properties #4928

@mhegazy

Description

@mhegazy

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 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already createdES7Relates to the ES7 SpecIn DiscussionNot yet reached consensusSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions