{"action":"opened","issue":{"url":"https://api.github.com/repos/6to5/6to5/issues/397","labels_url":"https://api.github.com/repos/6to5/6to5/issues/397/labels{/name}","comments_url":"https://api.github.com/repos/6to5/6to5/issues/397/comments","events_url":"https://api.github.com/repos/6to5/6to5/issues/397/events","html_url":"https://github.com/6to5/6to5/issues/397","id":53382691,"number":397,"title":"Destructuring assignment default values","user":{"login":"kentcdodds","id":1500684,"avatar_url":"https://avatars.githubusercontent.com/u/1500684?v=3","gravatar_id":"","url":"https://api.github.com/users/kentcdodds","html_url":"https://github.com/kentcdodds","followers_url":"https://api.github.com/users/kentcdodds/followers","following_url":"https://api.github.com/users/kentcdodds/following{/other_user}","gists_url":"https://api.github.com/users/kentcdodds/gists{/gist_id}","starred_url":"https://api.github.com/users/kentcdodds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kentcdodds/subscriptions","organizations_url":"https://api.github.com/users/kentcdodds/orgs","repos_url":"https://api.github.com/users/kentcdodds/repos","events_url":"https://api.github.com/users/kentcdodds/events{/privacy}","received_events_url":"https://api.github.com/users/kentcdodds/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-05T10:30:21Z","updated_at":"2015-01-05T10:30:21Z","closed_at":null,"body":"I think this is part of the spec (though I couldn't seem to find it) based on [this note](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment#See_also) comment on MDN (which points to [this bug](https://bugzilla.mozilla.org/show_bug.cgi?id=932080)).\r\n\r\nHere's an example use case:\r\n\r\n```js\r\nfunction foo({name = 'Mary', age: 25}) {\r\n  console.log(name, age);\r\n}\r\n\r\nfoo({\r\n  name: 'Joe',\r\n  hairColor: 'Blonde'\r\n}); // logs \"Joe 25\"\r\n\r\nfoo({\r\n  name: 'Lucy',\r\n  age: 16\r\n}); // logs \"Lucy 16\"\r\n```\r\n\r\nDoes anyone know if this is going to actually be implemented in the spec? If so, will this make it into 6to5?"}}