{"action":"created","issue":{"url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/issues/210","repository_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks","labels_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/issues/210/labels{/name}","comments_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/issues/210/comments","events_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/issues/210/events","html_url":"https://github.com/kottans/frontend-2019-homeworks/pull/210","id":394964596,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQxNTUyMjk0","number":210,"title":"Add oop version of Tiny JS World","user":{"login":"Humminggoo","id":26695116,"node_id":"MDQ6VXNlcjI2Njk1MTE2","avatar_url":"https://avatars1.githubusercontent.com/u/26695116?v=4","gravatar_id":"","url":"https://api.github.com/users/Humminggoo","html_url":"https://github.com/Humminggoo","followers_url":"https://api.github.com/users/Humminggoo/followers","following_url":"https://api.github.com/users/Humminggoo/following{/other_user}","gists_url":"https://api.github.com/users/Humminggoo/gists{/gist_id}","starred_url":"https://api.github.com/users/Humminggoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Humminggoo/subscriptions","organizations_url":"https://api.github.com/users/Humminggoo/orgs","repos_url":"https://api.github.com/users/Humminggoo/repos","events_url":"https://api.github.com/users/Humminggoo/events{/privacy}","received_events_url":"https://api.github.com/users/Humminggoo/received_events","type":"User","site_admin":false},"labels":[{"id":1107647613,"node_id":"MDU6TGFiZWwxMTA3NjQ3NjEz","url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/labels/js-post-oop","name":"js-post-oop","color":"a2eeef","default":false}],"state":"open","locked":false,"assignee":{"login":"AMashoshyna","id":17703790,"node_id":"MDQ6VXNlcjE3NzAzNzkw","avatar_url":"https://avatars0.githubusercontent.com/u/17703790?v=4","gravatar_id":"","url":"https://api.github.com/users/AMashoshyna","html_url":"https://github.com/AMashoshyna","followers_url":"https://api.github.com/users/AMashoshyna/followers","following_url":"https://api.github.com/users/AMashoshyna/following{/other_user}","gists_url":"https://api.github.com/users/AMashoshyna/gists{/gist_id}","starred_url":"https://api.github.com/users/AMashoshyna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AMashoshyna/subscriptions","organizations_url":"https://api.github.com/users/AMashoshyna/orgs","repos_url":"https://api.github.com/users/AMashoshyna/repos","events_url":"https://api.github.com/users/AMashoshyna/events{/privacy}","received_events_url":"https://api.github.com/users/AMashoshyna/received_events","type":"User","site_admin":false},"assignees":[{"login":"AMashoshyna","id":17703790,"node_id":"MDQ6VXNlcjE3NzAzNzkw","avatar_url":"https://avatars0.githubusercontent.com/u/17703790?v=4","gravatar_id":"","url":"https://api.github.com/users/AMashoshyna","html_url":"https://github.com/AMashoshyna","followers_url":"https://api.github.com/users/AMashoshyna/followers","following_url":"https://api.github.com/users/AMashoshyna/following{/other_user}","gists_url":"https://api.github.com/users/AMashoshyna/gists{/gist_id}","starred_url":"https://api.github.com/users/AMashoshyna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AMashoshyna/subscriptions","organizations_url":"https://api.github.com/users/AMashoshyna/orgs","repos_url":"https://api.github.com/users/AMashoshyna/repos","events_url":"https://api.github.com/users/AMashoshyna/events{/privacy}","received_events_url":"https://api.github.com/users/AMashoshyna/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-12-31T11:08:33Z","updated_at":"2019-01-04T23:20:48Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/pulls/210","html_url":"https://github.com/kottans/frontend-2019-homeworks/pull/210","diff_url":"https://github.com/kottans/frontend-2019-homeworks/pull/210.diff","patch_url":"https://github.com/kottans/frontend-2019-homeworks/pull/210.patch"},"body":"\r\n### OOP exercise\r\n\r\n[Demo](https://humminggoo.github.io/a-tiny-JS-world/) |\r\n[Code base](https://github.com/Humminggoo/a-tiny-JS-world)\r\n\r\nThe code is submitted in a dedicated feature branch.\r\nPlease, review.\r\n"},"comment":{"url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/issues/comments/451598247","html_url":"https://github.com/kottans/frontend-2019-homeworks/pull/210#issuecomment-451598247","issue_url":"https://api.github.com/repos/kottans/frontend-2019-homeworks/issues/210","id":451598247,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTU5ODI0Nw==","user":{"login":"AMashoshyna","id":17703790,"node_id":"MDQ6VXNlcjE3NzAzNzkw","avatar_url":"https://avatars0.githubusercontent.com/u/17703790?v=4","gravatar_id":"","url":"https://api.github.com/users/AMashoshyna","html_url":"https://github.com/AMashoshyna","followers_url":"https://api.github.com/users/AMashoshyna/followers","following_url":"https://api.github.com/users/AMashoshyna/following{/other_user}","gists_url":"https://api.github.com/users/AMashoshyna/gists{/gist_id}","starred_url":"https://api.github.com/users/AMashoshyna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AMashoshyna/subscriptions","organizations_url":"https://api.github.com/users/AMashoshyna/orgs","repos_url":"https://api.github.com/users/AMashoshyna/repos","events_url":"https://api.github.com/users/AMashoshyna/events{/privacy}","received_events_url":"https://api.github.com/users/AMashoshyna/received_events","type":"User","site_admin":false},"created_at":"2019-01-04T23:20:48Z","updated_at":"2019-01-04T23:20:48Z","author_association":"COLLABORATOR","body":"Well done! Your PR is good to merge.\r\nAs further improvement here is a trick you can do with \"toString\". Since `print` function expects a string, and if something is not a string, the \"toString\" method is called by the JavaScript engine \"under the hood\" to provide type coercion, here is what you can do:\r\n```javascript\r\n[dog, cat, woman, man, catwoman].forEach(i => print(i));  // i.toString called\r\n```\r\nDetails about \"toString\" [here](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString#Description)\r\nOr even better, since \"print\" expects one argument, and \"forEach\" provides array item as first argument to callback, you can write like so:\r\n```javascript\r\n[dog, cat, woman, man, catwoman].forEach(print);\r\n```\r\nCool, right?\r\n"}}
{"actor":{"display_login":"AMashoshyna"}}