{"action":"created","comment":{"url":"https://api.github.com/repos/urfu-2018/javascript-task-2/pulls/comments/230547427","pull_request_review_id":171319167,"id":230547427,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMDU0NzQyNw==","diff_hunk":"@@ -30,7 +72,21 @@ function add(phone, name, email) {\n  * @returns {Boolean}\n  */\n function update(phone, name, email) {\n+    if (!isCorrectPhoneAndNameAndEmail(phone, name, email)) {\n+        return false;\n+    }\n+    let newPhoneNote = { mPhone: phone, mName: name, mEmail: email };\n \n+    if (!checkContains(newPhoneNote)) {\n+        return false;\n+    }\n+    for (let i = 0; i < phoneBook.length; i++) {\n+        if (phone === phoneBook[i].mPhone) {\n+            phoneBook[i] = newPhoneNote;","path":"phone-book.js","position":79,"original_position":79,"commit_id":"760a0d5970f9736a4458c292c54b6c573f1e2332","original_commit_id":"760a0d5970f9736a4458c292c54b6c573f1e2332","user":{"login":"VasiliiKuznecov","id":8963033,"node_id":"MDQ6VXNlcjg5NjMwMzM=","avatar_url":"https://avatars3.githubusercontent.com/u/8963033?v=4","gravatar_id":"","url":"https://api.github.com/users/VasiliiKuznecov","html_url":"https://github.com/VasiliiKuznecov","followers_url":"https://api.github.com/users/VasiliiKuznecov/followers","following_url":"https://api.github.com/users/VasiliiKuznecov/following{/other_user}","gists_url":"https://api.github.com/users/VasiliiKuznecov/gists{/gist_id}","starred_url":"https://api.github.com/users/VasiliiKuznecov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VasiliiKuznecov/subscriptions","organizations_url":"https://api.github.com/users/VasiliiKuznecov/orgs","repos_url":"https://api.github.com/users/VasiliiKuznecov/repos","events_url":"https://api.github.com/users/VasiliiKuznecov/events{/privacy}","received_events_url":"https://api.github.com/users/VasiliiKuznecov/received_events","type":"User","site_admin":false},"body":"может, лучше использовать phoneBook.findIndex\r\nи обновить найденный индекс?","created_at":"2018-11-03T07:24:45Z","updated_at":"2018-11-03T07:30:50Z","html_url":"https://github.com/urfu-2018/javascript-task-2/pull/51#discussion_r230547427","pull_request_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/pulls/51","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/urfu-2018/javascript-task-2/pulls/comments/230547427"},"html":{"href":"https://github.com/urfu-2018/javascript-task-2/pull/51#discussion_r230547427"},"pull_request":{"href":"https://api.github.com/repos/urfu-2018/javascript-task-2/pulls/51"}}},"pull_request":{"url":"https://api.github.com/repos/urfu-2018/javascript-task-2/pulls/51","id":225133442,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1MTMzNDQy","html_url":"https://github.com/urfu-2018/javascript-task-2/pull/51","diff_url":"https://github.com/urfu-2018/javascript-task-2/pull/51.diff","patch_url":"https://github.com/urfu-2018/javascript-task-2/pull/51.patch","issue_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/issues/51","number":51,"state":"open","locked":false,"title":"Чернецов Александр","user":{"login":"Resinchen","id":27923256,"node_id":"MDQ6VXNlcjI3OTIzMjU2","avatar_url":"https://avatars1.githubusercontent.com/u/27923256?v=4","gravatar_id":"","url":"https://api.github.com/users/Resinchen","html_url":"https://github.com/Resinchen","followers_url":"https://api.github.com/users/Resinchen/followers","following_url":"https://api.github.com/users/Resinchen/following{/other_user}","gists_url":"https://api.github.com/users/Resinchen/gists{/gist_id}","starred_url":"https://api.github.com/users/Resinchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Resinchen/subscriptions","organizations_url":"https://api.github.com/users/Resinchen/orgs","repos_url":"https://api.github.com/users/Resinchen/repos","events_url":"https://api.github.com/users/Resinchen/events{/privacy}","received_events_url":"https://api.github.com/users/Resinchen/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-23T18:01:44Z","updated_at":"2018-11-03T07:30:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"32289f03f4625d6dc07f22e41c9151ff7bdbb81c","assignee":{"login":"VasiliiKuznecov","id":8963033,"node_id":"MDQ6VXNlcjg5NjMwMzM=","avatar_url":"https://avatars3.githubusercontent.com/u/8963033?v=4","gravatar_id":"","url":"https://api.github.com/users/VasiliiKuznecov","html_url":"https://github.com/VasiliiKuznecov","followers_url":"https://api.github.com/users/VasiliiKuznecov/followers","following_url":"https://api.github.com/users/VasiliiKuznecov/following{/other_user}","gists_url":"https://api.github.com/users/VasiliiKuznecov/gists{/gist_id}","starred_url":"https://api.github.com/users/VasiliiKuznecov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VasiliiKuznecov/subscriptions","organizations_url":"https://api.github.com/users/VasiliiKuznecov/orgs","repos_url":"https://api.github.com/users/VasiliiKuznecov/repos","events_url":"https://api.github.com/users/VasiliiKuznecov/events{/privacy}","received_events_url":"https://api.github.com/users/VasiliiKuznecov/received_events","type":"User","site_admin":false},"assignees":[{"login":"VasiliiKuznecov","id":8963033,"node_id":"MDQ6VXNlcjg5NjMwMzM=","avatar_url":"https://avatars3.githubusercontent.com/u/8963033?v=4","gravatar_id":"","url":"https://api.github.com/users/VasiliiKuznecov","html_url":"https://github.com/VasiliiKuznecov","followers_url":"https://api.github.com/users/VasiliiKuznecov/followers","following_url":"https://api.github.com/users/VasiliiKuznecov/following{/other_user}","gists_url":"https://api.github.com/users/VasiliiKuznecov/gists{/gist_id}","starred_url":"https://api.github.com/users/VasiliiKuznecov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VasiliiKuznecov/subscriptions","organizations_url":"https://api.github.com/users/VasiliiKuznecov/orgs","repos_url":"https://api.github.com/users/VasiliiKuznecov/repos","events_url":"https://api.github.com/users/VasiliiKuznecov/events{/privacy}","received_events_url":"https://api.github.com/users/VasiliiKuznecov/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/pulls/51/commits","review_comments_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/pulls/51/comments","review_comment_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/issues/51/comments","statuses_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/statuses/760a0d5970f9736a4458c292c54b6c573f1e2332","head":{"label":"Resinchen:master","ref":"master","sha":"760a0d5970f9736a4458c292c54b6c573f1e2332","user":{"login":"Resinchen","id":27923256,"node_id":"MDQ6VXNlcjI3OTIzMjU2","avatar_url":"https://avatars1.githubusercontent.com/u/27923256?v=4","gravatar_id":"","url":"https://api.github.com/users/Resinchen","html_url":"https://github.com/Resinchen","followers_url":"https://api.github.com/users/Resinchen/followers","following_url":"https://api.github.com/users/Resinchen/following{/other_user}","gists_url":"https://api.github.com/users/Resinchen/gists{/gist_id}","starred_url":"https://api.github.com/users/Resinchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Resinchen/subscriptions","organizations_url":"https://api.github.com/users/Resinchen/orgs","repos_url":"https://api.github.com/users/Resinchen/repos","events_url":"https://api.github.com/users/Resinchen/events{/privacy}","received_events_url":"https://api.github.com/users/Resinchen/received_events","type":"User","site_admin":false},"repo":{"id":153718067,"node_id":"MDEwOlJlcG9zaXRvcnkxNTM3MTgwNjc=","name":"javascript-task-2","full_name":"Resinchen/javascript-task-2","private":false,"owner":{"login":"Resinchen","id":27923256,"node_id":"MDQ6VXNlcjI3OTIzMjU2","avatar_url":"https://avatars1.githubusercontent.com/u/27923256?v=4","gravatar_id":"","url":"https://api.github.com/users/Resinchen","html_url":"https://github.com/Resinchen","followers_url":"https://api.github.com/users/Resinchen/followers","following_url":"https://api.github.com/users/Resinchen/following{/other_user}","gists_url":"https://api.github.com/users/Resinchen/gists{/gist_id}","starred_url":"https://api.github.com/users/Resinchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Resinchen/subscriptions","organizations_url":"https://api.github.com/users/Resinchen/orgs","repos_url":"https://api.github.com/users/Resinchen/repos","events_url":"https://api.github.com/users/Resinchen/events{/privacy}","received_events_url":"https://api.github.com/users/Resinchen/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Resinchen/javascript-task-2","description":"Задача «Телефонная книга Аркадия»","fork":true,"url":"https://api.github.com/repos/Resinchen/javascript-task-2","forks_url":"https://api.github.com/repos/Resinchen/javascript-task-2/forks","keys_url":"https://api.github.com/repos/Resinchen/javascript-task-2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Resinchen/javascript-task-2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Resinchen/javascript-task-2/teams","hooks_url":"https://api.github.com/repos/Resinchen/javascript-task-2/hooks","issue_events_url":"https://api.github.com/repos/Resinchen/javascript-task-2/issues/events{/number}","events_url":"https://api.github.com/repos/Resinchen/javascript-task-2/events","assignees_url":"https://api.github.com/repos/Resinchen/javascript-task-2/assignees{/user}","branches_url":"https://api.github.com/repos/Resinchen/javascript-task-2/branches{/branch}","tags_url":"https://api.github.com/repos/Resinchen/javascript-task-2/tags","blobs_url":"https://api.github.com/repos/Resinchen/javascript-task-2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Resinchen/javascript-task-2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Resinchen/javascript-task-2/git/refs{/sha}","trees_url":"https://api.github.com/repos/Resinchen/javascript-task-2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Resinchen/javascript-task-2/statuses/{sha}","languages_url":"https://api.github.com/repos/Resinchen/javascript-task-2/languages","stargazers_url":"https://api.github.com/repos/Resinchen/javascript-task-2/stargazers","contributors_url":"https://api.github.com/repos/Resinchen/javascript-task-2/contributors","subscribers_url":"https://api.github.com/repos/Resinchen/javascript-task-2/subscribers","subscription_url":"https://api.github.com/repos/Resinchen/javascript-task-2/subscription","commits_url":"https://api.github.com/repos/Resinchen/javascript-task-2/commits{/sha}","git_commits_url":"https://api.github.com/repos/Resinchen/javascript-task-2/git/commits{/sha}","comments_url":"https://api.github.com/repos/Resinchen/javascript-task-2/comments{/number}","issue_comment_url":"https://api.github.com/repos/Resinchen/javascript-task-2/issues/comments{/number}","contents_url":"https://api.github.com/repos/Resinchen/javascript-task-2/contents/{+path}","compare_url":"https://api.github.com/repos/Resinchen/javascript-task-2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Resinchen/javascript-task-2/merges","archive_url":"https://api.github.com/repos/Resinchen/javascript-task-2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Resinchen/javascript-task-2/downloads","issues_url":"https://api.github.com/repos/Resinchen/javascript-task-2/issues{/number}","pulls_url":"https://api.github.com/repos/Resinchen/javascript-task-2/pulls{/number}","milestones_url":"https://api.github.com/repos/Resinchen/javascript-task-2/milestones{/number}","notifications_url":"https://api.github.com/repos/Resinchen/javascript-task-2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Resinchen/javascript-task-2/labels{/name}","releases_url":"https://api.github.com/repos/Resinchen/javascript-task-2/releases{/id}","deployments_url":"https://api.github.com/repos/Resinchen/javascript-task-2/deployments","created_at":"2018-10-19T02:53:38Z","updated_at":"2018-10-24T16:57:42Z","pushed_at":"2018-10-24T16:57:40Z","git_url":"git://github.com/Resinchen/javascript-task-2.git","ssh_url":"git@github.com:Resinchen/javascript-task-2.git","clone_url":"https://github.com/Resinchen/javascript-task-2.git","svn_url":"https://github.com/Resinchen/javascript-task-2","homepage":"","size":34,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"urfu-2018:master","ref":"master","sha":"c5e2562d6428c01e820111fc21f3e7f13f848d55","user":{"login":"urfu-2018","id":43127233,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzMTI3MjMz","avatar_url":"https://avatars0.githubusercontent.com/u/43127233?v=4","gravatar_id":"","url":"https://api.github.com/users/urfu-2018","html_url":"https://github.com/urfu-2018","followers_url":"https://api.github.com/users/urfu-2018/followers","following_url":"https://api.github.com/users/urfu-2018/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2018/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2018/subscriptions","organizations_url":"https://api.github.com/users/urfu-2018/orgs","repos_url":"https://api.github.com/users/urfu-2018/repos","events_url":"https://api.github.com/users/urfu-2018/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2018/received_events","type":"Organization","site_admin":false},"repo":{"id":153625667,"node_id":"MDEwOlJlcG9zaXRvcnkxNTM2MjU2Njc=","name":"javascript-task-2","full_name":"urfu-2018/javascript-task-2","private":false,"owner":{"login":"urfu-2018","id":43127233,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzMTI3MjMz","avatar_url":"https://avatars0.githubusercontent.com/u/43127233?v=4","gravatar_id":"","url":"https://api.github.com/users/urfu-2018","html_url":"https://github.com/urfu-2018","followers_url":"https://api.github.com/users/urfu-2018/followers","following_url":"https://api.github.com/users/urfu-2018/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2018/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2018/subscriptions","organizations_url":"https://api.github.com/users/urfu-2018/orgs","repos_url":"https://api.github.com/users/urfu-2018/repos","events_url":"https://api.github.com/users/urfu-2018/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2018/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/urfu-2018/javascript-task-2","description":"Задача «Телефонная книга Аркадия»","fork":false,"url":"https://api.github.com/repos/urfu-2018/javascript-task-2","forks_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/forks","keys_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/teams","hooks_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/hooks","issue_events_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/issues/events{/number}","events_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/events","assignees_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/assignees{/user}","branches_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/branches{/branch}","tags_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/tags","blobs_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/git/refs{/sha}","trees_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/statuses/{sha}","languages_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/languages","stargazers_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/stargazers","contributors_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/contributors","subscribers_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/subscribers","subscription_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/subscription","commits_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/commits{/sha}","git_commits_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/git/commits{/sha}","comments_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/comments{/number}","issue_comment_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/issues/comments{/number}","contents_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/contents/{+path}","compare_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/merges","archive_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/downloads","issues_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/issues{/number}","pulls_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/pulls{/number}","milestones_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/milestones{/number}","notifications_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/labels{/name}","releases_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/releases{/id}","deployments_url":"https://api.github.com/repos/urfu-2018/javascript-task-2/deployments","created_at":"2018-10-18T13:09:54Z","updated_at":"2018-10-18T13:25:40Z","pushed_at":"2018-11-02T14:26:28Z","git_url":"git://github.com/urfu-2018/javascript-task-2.git","ssh_url":"git@github.com:urfu-2018/javascript-task-2.git","clone_url":"https://github.com/urfu-2018/javascript-task-2.git","svn_url":"https://github.com/urfu-2018/javascript-task-2","homepage":"","size":15,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":128,"mirror_url":null,"archived":false,"open_issues_count":40,"license":null,"forks":128,"open_issues":40,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/urfu-2018/javascript-task-2/pulls/51"},"html":{"href":"https://github.com/urfu-2018/javascript-task-2/pull/51"},"issue":{"href":"https://api.github.com/repos/urfu-2018/javascript-task-2/issues/51"},"comments":{"href":"https://api.github.com/repos/urfu-2018/javascript-task-2/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/urfu-2018/javascript-task-2/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/urfu-2018/javascript-task-2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/urfu-2018/javascript-task-2/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/urfu-2018/javascript-task-2/statuses/760a0d5970f9736a4458c292c54b6c573f1e2332"}},"author_association":"NONE"}}
{"actor":{"display_login":"VasiliiKuznecov"}}