{"action":"created","issue":{"url":"https://api.github.com/repos/bakkot/object-from-entries/issues/7","repository_url":"https://api.github.com/repos/bakkot/object-from-entries","labels_url":"https://api.github.com/repos/bakkot/object-from-entries/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/bakkot/object-from-entries/issues/7/comments","events_url":"https://api.github.com/repos/bakkot/object-from-entries/issues/7/events","html_url":"https://github.com/bakkot/object-from-entries/issues/7","id":303578618,"number":7,"title":"`.fromEntries` vs `.from`","user":{"login":"zloirock","id":2213682,"avatar_url":"https://avatars0.githubusercontent.com/u/2213682?v=4","gravatar_id":"","url":"https://api.github.com/users/zloirock","html_url":"https://github.com/zloirock","followers_url":"https://api.github.com/users/zloirock/followers","following_url":"https://api.github.com/users/zloirock/following{/other_user}","gists_url":"https://api.github.com/users/zloirock/gists{/gist_id}","starred_url":"https://api.github.com/users/zloirock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zloirock/subscriptions","organizations_url":"https://api.github.com/users/zloirock/orgs","repos_url":"https://api.github.com/users/zloirock/repos","events_url":"https://api.github.com/users/zloirock/events{/privacy}","received_events_url":"https://api.github.com/users/zloirock/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-03-08T18:12:08Z","updated_at":"2018-03-13T08:08:52Z","closed_at":null,"author_association":"NONE","body":"I haven't any strict opinion about it, but already available [proposal `.from` / `.of` methods on collections](https://github.com/tc39/proposal-setmap-offrom). On `Map` / `WeakMap`, it works with entries."},"comment":{"url":"https://api.github.com/repos/bakkot/object-from-entries/issues/comments/372580160","html_url":"https://github.com/bakkot/object-from-entries/issues/7#issuecomment-372580160","issue_url":"https://api.github.com/repos/bakkot/object-from-entries/issues/7","id":372580160,"user":{"login":"bathos","id":6257356,"avatar_url":"https://avatars1.githubusercontent.com/u/6257356?v=4","gravatar_id":"","url":"https://api.github.com/users/bathos","html_url":"https://github.com/bathos","followers_url":"https://api.github.com/users/bathos/followers","following_url":"https://api.github.com/users/bathos/following{/other_user}","gists_url":"https://api.github.com/users/bathos/gists{/gist_id}","starred_url":"https://api.github.com/users/bathos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bathos/subscriptions","organizations_url":"https://api.github.com/users/bathos/orgs","repos_url":"https://api.github.com/users/bathos/repos","events_url":"https://api.github.com/users/bathos/events{/privacy}","received_events_url":"https://api.github.com/users/bathos/received_events","type":"User","site_admin":false},"created_at":"2018-03-13T08:08:52Z","updated_at":"2018-03-13T08:08:52Z","author_association":"COLLABORATOR","body":"@WebReflection I don’t understand the examples given —\r\n\r\n> and so on for others with entries methods.\r\n\r\nAccording to that logic, while `Object.fromEntries(mapInstance)` would work, the following would be quite a surprise:\r\n\r\n```js\r\nObject.fromEntries(Object.entries({ a: true, b: false }));\r\n// gives us { '0': [ 'a', true ], '1': [ 'b', false ] }\r\n```\r\n\r\nIt doesn’t seem to solve the same set of problems as the proposed behavior."}}
{"actor":{"display_login":"bathos"}}