{"id":27003715,"url":"https://github.com/sebmarkbage/ecmascript-rest-spread","last_synced_at":"2025-04-04T06:01:14.343Z","repository":{"id":19178670,"uuid":"22411174","full_name":"tc39/proposal-object-rest-spread","owner":"tc39","description":"Rest/Spread Properties for ECMAScript","archived":true,"fork":false,"pushed_at":"2022-01-24T19:18:52.000Z","size":86,"stargazers_count":1494,"open_issues_count":14,"forks_count":85,"subscribers_count":69,"default_branch":"main","last_synced_at":"2024-07-31T22:12:36.839Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tc39.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-30T06:05:03.000Z","updated_at":"2024-07-24T09:13:42.000Z","dependencies_parsed_at":"2022-07-28T23:18:58.331Z","dependency_job_id":null,"html_url":"https://github.com/tc39/proposal-object-rest-spread","commit_stats":null,"previous_names":["sebmarkbage/ecmascript-rest-spread"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tc39%2Fproposal-object-rest-spread","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tc39%2Fproposal-object-rest-spread/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tc39%2Fproposal-object-rest-spread/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tc39%2Fproposal-object-rest-spread/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tc39","download_url":"https://codeload.github.com/tc39/proposal-object-rest-spread/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247128747,"owners_count":20888235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-04T06:00:43.215Z","updated_at":"2025-04-04T06:01:14.327Z","avatar_url":"https://github.com/tc39.png","language":"HTML","readme":"Object Rest/Spread Properties for ECMAScript\n--------------------------------------------\n\nECMAScript 6 introduces [rest elements](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment) for array destructuring assignment and [spread elements](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_operator) for array literals.\n\nThis proposal introduces analogous [rest properties](Rest.md) for object destructuring assignment and [spread properties](Spread.md) for object literals.\n\n### [Specification](https://tc39.github.io/proposal-object-rest-spread/)\n\n[Specification](https://tc39.github.io/proposal-object-rest-spread/)\n\n### [Rest Properties](Rest.md)\n\nRest properties collect the remaining own enumerable property keys that are not already picked off by the destructuring pattern. Those keys and their values are copied onto a new object.\n\n```javascript\nlet { x, y, ...z } = { x: 1, y: 2, a: 3, b: 4 };\nx; // 1\ny; // 2\nz; // { a: 3, b: 4 }\n```\n\n### [Spread Properties](Spread.md)\n\nSpread properties in object initializers copies own enumerable properties from a provided object onto the newly created object.\n\n```javascript\nlet n = { x, y, ...z };\nn; // { x: 1, y: 2, a: 3, b: 4 }\n```\n\n### Transpilers\n\n[Babel](https://babeljs.io/docs/plugins/transform-object-rest-spread/)\n\n[Bublé](https://github.com/Rich-Harris/buble/)\n\n[JSTransform](https://github.com/facebook/jstransform)\n\n[TypeScript](https://github.com/Microsoft/TypeScript)\n\n## [Status of this Proposal](https://github.com/tc39/ecma262)\n\nIt is a Stage 4 proposal for ECMAScript.\n\n## [Known Issues](Issues.md)\n\nThis proposal only iterates over __own__ properties. [See why this matters.](Issues.md)\n","funding_links":[],"categories":["Supported Language Features and Polyfills"],"sub_categories":["`npm run eject`"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebmarkbage%2Fecmascript-rest-spread","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebmarkbage%2Fecmascript-rest-spread","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebmarkbage%2Fecmascript-rest-spread/lists"}