{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/immutable-js/issues/936","repository_url":"https://api.github.com/repos/facebook/immutable-js","labels_url":"https://api.github.com/repos/facebook/immutable-js/issues/936/labels{/name}","comments_url":"https://api.github.com/repos/facebook/immutable-js/issues/936/comments","events_url":"https://api.github.com/repos/facebook/immutable-js/issues/936/events","html_url":"https://github.com/facebook/immutable-js/issues/936","id":168487424,"number":936,"title":"Record and ES6 Spread operator","user":{"login":"jezikk","id":7671531,"avatar_url":"https://avatars.githubusercontent.com/u/7671531?v=3","gravatar_id":"","url":"https://api.github.com/users/jezikk","html_url":"https://github.com/jezikk","followers_url":"https://api.github.com/users/jezikk/followers","following_url":"https://api.github.com/users/jezikk/following{/other_user}","gists_url":"https://api.github.com/users/jezikk/gists{/gist_id}","starred_url":"https://api.github.com/users/jezikk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jezikk/subscriptions","organizations_url":"https://api.github.com/users/jezikk/orgs","repos_url":"https://api.github.com/users/jezikk/repos","events_url":"https://api.github.com/users/jezikk/events{/privacy}","received_events_url":"https://api.github.com/users/jezikk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-30T21:18:26Z","updated_at":"2016-07-30T21:18:26Z","closed_at":null,"body":"Hi,\r\n\r\nI have a question: why this approach doesn't work\r\n```\r\nconst obj1 = Record({\r\n    param: 1,\r\n})();\r\n\r\nconst obj2 = Record({\r\n    ...obj1,\r\n    param2: 2,\r\n})();\r\n```\r\n, while the following one does?\r\n\r\n```\r\nconst obj1 = Record({\r\n    param1: 1,\r\n})();\r\n\r\nconst obj2 = Record({\r\n    ...obj1.toObject(),\r\n    param2: 2,\r\n})();\r\n```\r\n\r\nI think it would be good to use spread operator to extend the Record with new parameters.\r\n\r\nThank you."}}
{"actor":{"display_login":"jezikk"}}