{"action":"created","issue":{"url":"https://api.github.com/repos/este/este/issues/1154","repository_url":"https://api.github.com/repos/este/este","labels_url":"https://api.github.com/repos/este/este/issues/1154/labels{/name}","comments_url":"https://api.github.com/repos/este/este/issues/1154/comments","events_url":"https://api.github.com/repos/este/este/issues/1154/events","html_url":"https://github.com/este/este/issues/1154","id":177697515,"number":1154,"title":"Object.keys warning","user":{"login":"sweetolive","id":2638302,"avatar_url":"https://avatars.githubusercontent.com/u/2638302?v=3","gravatar_id":"","url":"https://api.github.com/users/sweetolive","html_url":"https://github.com/sweetolive","followers_url":"https://api.github.com/users/sweetolive/followers","following_url":"https://api.github.com/users/sweetolive/following{/other_user}","gists_url":"https://api.github.com/users/sweetolive/gists{/gist_id}","starred_url":"https://api.github.com/users/sweetolive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sweetolive/subscriptions","organizations_url":"https://api.github.com/users/sweetolive/orgs","repos_url":"https://api.github.com/users/sweetolive/repos","events_url":"https://api.github.com/users/sweetolive/events{/privacy}","received_events_url":"https://api.github.com/users/sweetolive/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-19T03:16:27Z","updated_at":"2016-09-20T03:46:21Z","closed_at":"2016-09-19T11:14:30Z","body":"<img width=\"213\" alt=\"warning\" src=\"https://cloud.githubusercontent.com/assets/2638302/18621695/a93695ca-7e59-11e6-9bee-c6121e9af07a.png\">\r\n\r\n```\r\nconst updateState = (state, storageStateJson) => {\r\n  const empty = !storageStateJson || !Object.keys(storageStateJson).length;\r\n  if (empty) return state;\r\n  ...\r\n  ...\r\n}\r\n```\r\nIn ES5, if the argument to this method is not an object (a primitive), then it will cause a TypeError. In ES6, a non-object argument will be coerced to an object.\r\n\r\nref: [object.key of mdn](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys)\r\n#1136 \r\n"},"comment":{"url":"https://api.github.com/repos/este/este/issues/comments/248193914","html_url":"https://github.com/este/este/issues/1154#issuecomment-248193914","issue_url":"https://api.github.com/repos/este/este/issues/1154","id":248193914,"user":{"login":"sweetolive","id":2638302,"avatar_url":"https://avatars.githubusercontent.com/u/2638302?v=3","gravatar_id":"","url":"https://api.github.com/users/sweetolive","html_url":"https://github.com/sweetolive","followers_url":"https://api.github.com/users/sweetolive/followers","following_url":"https://api.github.com/users/sweetolive/following{/other_user}","gists_url":"https://api.github.com/users/sweetolive/gists{/gist_id}","starred_url":"https://api.github.com/users/sweetolive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sweetolive/subscriptions","organizations_url":"https://api.github.com/users/sweetolive/orgs","repos_url":"https://api.github.com/users/sweetolive/repos","events_url":"https://api.github.com/users/sweetolive/events{/privacy}","received_events_url":"https://api.github.com/users/sweetolive/received_events","type":"User","site_admin":false},"created_at":"2016-09-20T03:46:21Z","updated_at":"2016-09-20T03:46:21Z","body":"@steida  I remove `Object.keys` code and I don't know why use `Object.keys`"}}
{"actor":{"display_login":"sweetolive"}}