{"action":"created","comment":{"url":"https://api.github.com/repos/code-squad/javascript-todo/pulls/comments/154855091","pull_request_review_id":81079140,"id":154855091,"diff_hunk":"@@ -0,0 +1,258 @@\n+var readline = require('readline');\n+var r = readline.createInterface({\n+  input: process.stdin,\n+  output: process.stdout\n+});\n+\n+\n+/**\n+ * Time\n+ */\n+\n+var time = {\n+  getNow: function() {\n+    return new Date().getTime();\n+  },\n+  getDuration: function(startTime, endTime) {\n+    var gap = endTime - startTime;\n+    // var secGap = gxap / 1000;\n+    var minGap = gap / 1000 / 60;\n+    var hourGap = gap / 1000 / 60 / 60;\n+  \n+    return {\n+      hour: Math.floor(hourGap),\n+      min: Math.floor(minGap % 60)\n+    };\n+  }\n+};\n+\n+\n+/**\n+ * STATE\n+ */\n+\n+var STATE = {","path":"app.js","position":34,"original_position":34,"commit_id":"64bfb05421f06075e396cfea0bccf32f396dcad5","original_commit_id":"64bfb05421f06075e396cfea0bccf32f396dcad5","user":{"login":"nigayo","id":1456761,"avatar_url":"https://avatars2.githubusercontent.com/u/1456761?v=4","gravatar_id":"","url":"https://api.github.com/users/nigayo","html_url":"https://github.com/nigayo","followers_url":"https://api.github.com/users/nigayo/followers","following_url":"https://api.github.com/users/nigayo/following{/other_user}","gists_url":"https://api.github.com/users/nigayo/gists{/gist_id}","starred_url":"https://api.github.com/users/nigayo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nigayo/subscriptions","organizations_url":"https://api.github.com/users/nigayo/orgs","repos_url":"https://api.github.com/users/nigayo/repos","events_url":"https://api.github.com/users/nigayo/events{/privacy}","received_events_url":"https://api.github.com/users/nigayo/received_events","type":"User","site_admin":false},"body":"사실 이건 필요 없어보여요.. key와 value가 그냥 같기 때문이겠죠. ","created_at":"2017-12-05T06:18:50Z","updated_at":"2017-12-05T06:45:01Z","html_url":"https://github.com/code-squad/javascript-todo/pull/8#discussion_r154855091","pull_request_url":"https://api.github.com/repos/code-squad/javascript-todo/pulls/8","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/code-squad/javascript-todo/pulls/comments/154855091"},"html":{"href":"https://github.com/code-squad/javascript-todo/pull/8#discussion_r154855091"},"pull_request":{"href":"https://api.github.com/repos/code-squad/javascript-todo/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/code-squad/javascript-todo/pulls/8","id":156128002,"html_url":"https://github.com/code-squad/javascript-todo/pull/8","diff_url":"https://github.com/code-squad/javascript-todo/pull/8.diff","patch_url":"https://github.com/code-squad/javascript-todo/pull/8.patch","issue_url":"https://api.github.com/repos/code-squad/javascript-todo/issues/8","number":8,"state":"open","locked":false,"title":"Refactoring. app.js","user":{"login":"kimally","id":23192677,"avatar_url":"https://avatars0.githubusercontent.com/u/23192677?v=4","gravatar_id":"","url":"https://api.github.com/users/kimally","html_url":"https://github.com/kimally","followers_url":"https://api.github.com/users/kimally/followers","following_url":"https://api.github.com/users/kimally/following{/other_user}","gists_url":"https://api.github.com/users/kimally/gists{/gist_id}","starred_url":"https://api.github.com/users/kimally/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimally/subscriptions","organizations_url":"https://api.github.com/users/kimally/orgs","repos_url":"https://api.github.com/users/kimally/repos","events_url":"https://api.github.com/users/kimally/events{/privacy}","received_events_url":"https://api.github.com/users/kimally/received_events","type":"User","site_admin":false},"body":"1차 리팩토링\r\n* 객체리터럴 구조로 변경\r\n* 함수가 될 수 있는 코드를 좀 더 쪼갬\r\n\r\n2차 리팩토링\r\n* 일부 제어문 제거하고, 다른 구조로 함수 실행하도록 변경\r\n* 배열객체 다루는 부분을 for문에서 forEach, filter 사용하도록 변경\r\n* this 변경되는 이슈로 인해 call을 드디어 사용해 봄..!","created_at":"2017-12-04T07:37:44Z","updated_at":"2017-12-05T06:45:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"75686a4bd4c6e8cd3f0ae59428bb38dfdf27e599","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/code-squad/javascript-todo/pulls/8/commits","review_comments_url":"https://api.github.com/repos/code-squad/javascript-todo/pulls/8/comments","review_comment_url":"https://api.github.com/repos/code-squad/javascript-todo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/code-squad/javascript-todo/issues/8/comments","statuses_url":"https://api.github.com/repos/code-squad/javascript-todo/statuses/64bfb05421f06075e396cfea0bccf32f396dcad5","head":{"label":"kimally:Lumi","ref":"Lumi","sha":"64bfb05421f06075e396cfea0bccf32f396dcad5","user":{"login":"kimally","id":23192677,"avatar_url":"https://avatars0.githubusercontent.com/u/23192677?v=4","gravatar_id":"","url":"https://api.github.com/users/kimally","html_url":"https://github.com/kimally","followers_url":"https://api.github.com/users/kimally/followers","following_url":"https://api.github.com/users/kimally/following{/other_user}","gists_url":"https://api.github.com/users/kimally/gists{/gist_id}","starred_url":"https://api.github.com/users/kimally/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimally/subscriptions","organizations_url":"https://api.github.com/users/kimally/orgs","repos_url":"https://api.github.com/users/kimally/repos","events_url":"https://api.github.com/users/kimally/events{/privacy}","received_events_url":"https://api.github.com/users/kimally/received_events","type":"User","site_admin":false},"repo":{"id":112719500,"name":"javascript-todo","full_name":"kimally/javascript-todo","owner":{"login":"kimally","id":23192677,"avatar_url":"https://avatars0.githubusercontent.com/u/23192677?v=4","gravatar_id":"","url":"https://api.github.com/users/kimally","html_url":"https://github.com/kimally","followers_url":"https://api.github.com/users/kimally/followers","following_url":"https://api.github.com/users/kimally/following{/other_user}","gists_url":"https://api.github.com/users/kimally/gists{/gist_id}","starred_url":"https://api.github.com/users/kimally/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimally/subscriptions","organizations_url":"https://api.github.com/users/kimally/orgs","repos_url":"https://api.github.com/users/kimally/repos","events_url":"https://api.github.com/users/kimally/events{/privacy}","received_events_url":"https://api.github.com/users/kimally/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kimally/javascript-todo","description":"레벨2","fork":true,"url":"https://api.github.com/repos/kimally/javascript-todo","forks_url":"https://api.github.com/repos/kimally/javascript-todo/forks","keys_url":"https://api.github.com/repos/kimally/javascript-todo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kimally/javascript-todo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kimally/javascript-todo/teams","hooks_url":"https://api.github.com/repos/kimally/javascript-todo/hooks","issue_events_url":"https://api.github.com/repos/kimally/javascript-todo/issues/events{/number}","events_url":"https://api.github.com/repos/kimally/javascript-todo/events","assignees_url":"https://api.github.com/repos/kimally/javascript-todo/assignees{/user}","branches_url":"https://api.github.com/repos/kimally/javascript-todo/branches{/branch}","tags_url":"https://api.github.com/repos/kimally/javascript-todo/tags","blobs_url":"https://api.github.com/repos/kimally/javascript-todo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kimally/javascript-todo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kimally/javascript-todo/git/refs{/sha}","trees_url":"https://api.github.com/repos/kimally/javascript-todo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kimally/javascript-todo/statuses/{sha}","languages_url":"https://api.github.com/repos/kimally/javascript-todo/languages","stargazers_url":"https://api.github.com/repos/kimally/javascript-todo/stargazers","contributors_url":"https://api.github.com/repos/kimally/javascript-todo/contributors","subscribers_url":"https://api.github.com/repos/kimally/javascript-todo/subscribers","subscription_url":"https://api.github.com/repos/kimally/javascript-todo/subscription","commits_url":"https://api.github.com/repos/kimally/javascript-todo/commits{/sha}","git_commits_url":"https://api.github.com/repos/kimally/javascript-todo/git/commits{/sha}","comments_url":"https://api.github.com/repos/kimally/javascript-todo/comments{/number}","issue_comment_url":"https://api.github.com/repos/kimally/javascript-todo/issues/comments{/number}","contents_url":"https://api.github.com/repos/kimally/javascript-todo/contents/{+path}","compare_url":"https://api.github.com/repos/kimally/javascript-todo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kimally/javascript-todo/merges","archive_url":"https://api.github.com/repos/kimally/javascript-todo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kimally/javascript-todo/downloads","issues_url":"https://api.github.com/repos/kimally/javascript-todo/issues{/number}","pulls_url":"https://api.github.com/repos/kimally/javascript-todo/pulls{/number}","milestones_url":"https://api.github.com/repos/kimally/javascript-todo/milestones{/number}","notifications_url":"https://api.github.com/repos/kimally/javascript-todo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kimally/javascript-todo/labels{/name}","releases_url":"https://api.github.com/repos/kimally/javascript-todo/releases{/id}","deployments_url":"https://api.github.com/repos/kimally/javascript-todo/deployments","created_at":"2017-12-01T09:13:54Z","updated_at":"2017-10-23T01:28:20Z","pushed_at":"2017-12-05T05:28:51Z","git_url":"git://github.com/kimally/javascript-todo.git","ssh_url":"git@github.com:kimally/javascript-todo.git","clone_url":"https://github.com/kimally/javascript-todo.git","svn_url":"https://github.com/kimally/javascript-todo","homepage":null,"size":623,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"code-squad:Lumi","ref":"Lumi","sha":"94225011c9ae257bbe4a1467ad8f9f0ba2f518d5","user":{"login":"code-squad","id":22832280,"avatar_url":"https://avatars2.githubusercontent.com/u/22832280?v=4","gravatar_id":"","url":"https://api.github.com/users/code-squad","html_url":"https://github.com/code-squad","followers_url":"https://api.github.com/users/code-squad/followers","following_url":"https://api.github.com/users/code-squad/following{/other_user}","gists_url":"https://api.github.com/users/code-squad/gists{/gist_id}","starred_url":"https://api.github.com/users/code-squad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-squad/subscriptions","organizations_url":"https://api.github.com/users/code-squad/orgs","repos_url":"https://api.github.com/users/code-squad/repos","events_url":"https://api.github.com/users/code-squad/events{/privacy}","received_events_url":"https://api.github.com/users/code-squad/received_events","type":"Organization","site_admin":false},"repo":{"id":107917645,"name":"javascript-todo","full_name":"code-squad/javascript-todo","owner":{"login":"code-squad","id":22832280,"avatar_url":"https://avatars2.githubusercontent.com/u/22832280?v=4","gravatar_id":"","url":"https://api.github.com/users/code-squad","html_url":"https://github.com/code-squad","followers_url":"https://api.github.com/users/code-squad/followers","following_url":"https://api.github.com/users/code-squad/following{/other_user}","gists_url":"https://api.github.com/users/code-squad/gists{/gist_id}","starred_url":"https://api.github.com/users/code-squad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-squad/subscriptions","organizations_url":"https://api.github.com/users/code-squad/orgs","repos_url":"https://api.github.com/users/code-squad/repos","events_url":"https://api.github.com/users/code-squad/events{/privacy}","received_events_url":"https://api.github.com/users/code-squad/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/code-squad/javascript-todo","description":"레벨2","fork":false,"url":"https://api.github.com/repos/code-squad/javascript-todo","forks_url":"https://api.github.com/repos/code-squad/javascript-todo/forks","keys_url":"https://api.github.com/repos/code-squad/javascript-todo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/code-squad/javascript-todo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/code-squad/javascript-todo/teams","hooks_url":"https://api.github.com/repos/code-squad/javascript-todo/hooks","issue_events_url":"https://api.github.com/repos/code-squad/javascript-todo/issues/events{/number}","events_url":"https://api.github.com/repos/code-squad/javascript-todo/events","assignees_url":"https://api.github.com/repos/code-squad/javascript-todo/assignees{/user}","branches_url":"https://api.github.com/repos/code-squad/javascript-todo/branches{/branch}","tags_url":"https://api.github.com/repos/code-squad/javascript-todo/tags","blobs_url":"https://api.github.com/repos/code-squad/javascript-todo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/code-squad/javascript-todo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/code-squad/javascript-todo/git/refs{/sha}","trees_url":"https://api.github.com/repos/code-squad/javascript-todo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/code-squad/javascript-todo/statuses/{sha}","languages_url":"https://api.github.com/repos/code-squad/javascript-todo/languages","stargazers_url":"https://api.github.com/repos/code-squad/javascript-todo/stargazers","contributors_url":"https://api.github.com/repos/code-squad/javascript-todo/contributors","subscribers_url":"https://api.github.com/repos/code-squad/javascript-todo/subscribers","subscription_url":"https://api.github.com/repos/code-squad/javascript-todo/subscription","commits_url":"https://api.github.com/repos/code-squad/javascript-todo/commits{/sha}","git_commits_url":"https://api.github.com/repos/code-squad/javascript-todo/git/commits{/sha}","comments_url":"https://api.github.com/repos/code-squad/javascript-todo/comments{/number}","issue_comment_url":"https://api.github.com/repos/code-squad/javascript-todo/issues/comments{/number}","contents_url":"https://api.github.com/repos/code-squad/javascript-todo/contents/{+path}","compare_url":"https://api.github.com/repos/code-squad/javascript-todo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/code-squad/javascript-todo/merges","archive_url":"https://api.github.com/repos/code-squad/javascript-todo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/code-squad/javascript-todo/downloads","issues_url":"https://api.github.com/repos/code-squad/javascript-todo/issues{/number}","pulls_url":"https://api.github.com/repos/code-squad/javascript-todo/pulls{/number}","milestones_url":"https://api.github.com/repos/code-squad/javascript-todo/milestones{/number}","notifications_url":"https://api.github.com/repos/code-squad/javascript-todo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/code-squad/javascript-todo/labels{/name}","releases_url":"https://api.github.com/repos/code-squad/javascript-todo/releases{/id}","deployments_url":"https://api.github.com/repos/code-squad/javascript-todo/deployments","created_at":"2017-10-23T01:26:45Z","updated_at":"2017-10-23T01:28:20Z","pushed_at":"2017-12-05T05:28:52Z","git_url":"git://github.com/code-squad/javascript-todo.git","ssh_url":"git@github.com:code-squad/javascript-todo.git","clone_url":"https://github.com/code-squad/javascript-todo.git","svn_url":"https://github.com/code-squad/javascript-todo","homepage":null,"size":618,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":6,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/code-squad/javascript-todo/pulls/8"},"html":{"href":"https://github.com/code-squad/javascript-todo/pull/8"},"issue":{"href":"https://api.github.com/repos/code-squad/javascript-todo/issues/8"},"comments":{"href":"https://api.github.com/repos/code-squad/javascript-todo/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/code-squad/javascript-todo/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/code-squad/javascript-todo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/code-squad/javascript-todo/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/code-squad/javascript-todo/statuses/64bfb05421f06075e396cfea0bccf32f396dcad5"}},"author_association":"NONE"}}
{"actor":{"display_login":"nigayo"}}