payload: {"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/pulls/comments/326525304","pull_request_review_id":291025250,"id":326525304,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMyNjUyNTMwNA==","diff_hunk":"@@ -54,13 +65,36 @@ var getRandomData = function (arr) {\n var getRandomArray = function (arr) {\n   var randomArr = [];\n   var arrayLength = getRandomInt(getRandomIntInclusive(1, 10));\n+\n   for (var i = 0; i < arrayLength; i++) {\n-    randomArr.push(arr[i]);\n+    var j = getRandomInt(arr.length - 1);\n+    if (arr[i]) {\n+      randomArr.push(arr[i]);\n+    }\n+    randomArr.push(arr[j]);\n   }\n \n   return randomArr;\n };\n \n+var matchValues = function (names, value) {\n+  var ansv = '';\n+  for (var i in names) {\n+    if (i === value) {\n+      ansv = names.i;","path":"js/main.js","position":46,"original_position":46,"commit_id":"70eb22e1a0ec4184d30477770aa86fc616245fc9","original_commit_id":"70eb22e1a0ec4184d30477770aa86fc616245fc9","user":{"login":"vitali-usik","id":15727647,"node_id":"MDQ6VXNlcjE1NzI3NjQ3","avatar_url":"https://avatars3.githubusercontent.com/u/15727647?v=4","gravatar_id":"","url":"https://api.github.com/users/vitali-usik","html_url":"https://github.com/vitali-usik","followers_url":"https://api.github.com/users/vitali-usik/followers","following_url":"https://api.github.com/users/vitali-usik/following{/other_user}","gists_url":"https://api.github.com/users/vitali-usik/gists{/gist_id}","starred_url":"https://api.github.com/users/vitali-usik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitali-usik/subscriptions","organizations_url":"https://api.github.com/users/vitali-usik/orgs","repos_url":"https://api.github.com/users/vitali-usik/repos","events_url":"https://api.github.com/users/vitali-usik/events{/privacy}","received_events_url":"https://api.github.com/users/vitali-usik/received_events","type":"User","site_admin":false},"body":"У `names` точно нет поля с именем `i`. Что бы взять корректно элемент, нужно написать так:\r\n`ansv = names[i];`","created_at":"2019-09-20T08:35:38Z","updated_at":"2019-09-20T08:48:30Z","html_url":"https://github.com/htmlacademy-javascript/13452-keksobooking-18/pull/3#discussion_r326525304","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/pulls/3","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/pulls/comments/326525304"},"html":{"href":"https://github.com/htmlacademy-javascript/13452-keksobooking-18/pull/3#discussion_r326525304"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/pulls/3","id":319602790,"node_id":"MDExOlB1bGxSZXF1ZXN0MzE5NjAyNzkw","html_url":"https://github.com/htmlacademy-javascript/13452-keksobooking-18/pull/3","diff_url":"https://github.com/htmlacademy-javascript/13452-keksobooking-18/pull/3.diff","patch_url":"https://github.com/htmlacademy-javascript/13452-keksobooking-18/pull/3.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/issues/3","number":3,"state":"open","locked":false,"title":"Личный проект: больше деталей","user":{"login":"WhiteCorvin","id":43922962,"node_id":"MDQ6VXNlcjQzOTIyOTYy","avatar_url":"https://avatars1.githubusercontent.com/u/43922962?v=4","gravatar_id":"","url":"https://api.github.com/users/WhiteCorvin","html_url":"https://github.com/WhiteCorvin","followers_url":"https://api.github.com/users/WhiteCorvin/followers","following_url":"https://api.github.com/users/WhiteCorvin/following{/other_user}","gists_url":"https://api.github.com/users/WhiteCorvin/gists{/gist_id}","starred_url":"https://api.github.com/users/WhiteCorvin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WhiteCorvin/subscriptions","organizations_url":"https://api.github.com/users/WhiteCorvin/orgs","repos_url":"https://api.github.com/users/WhiteCorvin/repos","events_url":"https://api.github.com/users/WhiteCorvin/events{/privacy}","received_events_url":"https://api.github.com/users/WhiteCorvin/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Личный проект: больше деталей](https://up.htmlacademy.ru/javascript/18/user/13452/tasks/6)\n\n:boom: https://htmlacademy-javascript.github.io/13452-keksobooking-18/3/","created_at":"2019-09-20T07:57:12Z","updated_at":"2019-09-20T08:48:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a08b361d5cb93025ad86b3e9382e46c6677ad156","assignee":{"login":"vitali-usik","id":15727647,"node_id":"MDQ6VXNlcjE1NzI3NjQ3","avatar_url":"https://avatars3.githubusercontent.com/u/15727647?v=4","gravatar_id":"","url":"https://api.github.com/users/vitali-usik","html_url":"https://github.com/vitali-usik","followers_url":"https://api.github.com/users/vitali-usik/followers","following_url":"https://api.github.com/users/vitali-usik/following{/other_user}","gists_url":"https://api.github.com/users/vitali-usik/gists{/gist_id}","starred_url":"https://api.github.com/users/vitali-usik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitali-usik/subscriptions","organizations_url":"https://api.github.com/users/vitali-usik/orgs","repos_url":"https://api.github.com/users/vitali-usik/repos","events_url":"https://api.github.com/users/vitali-usik/events{/privacy}","received_events_url":"https://api.github.com/users/vitali-usik/received_events","type":"User","site_admin":false},"assignees":[{"login":"vitali-usik","id":15727647,"node_id":"MDQ6VXNlcjE1NzI3NjQ3","avatar_url":"https://avatars3.githubusercontent.com/u/15727647?v=4","gravatar_id":"","url":"https://api.github.com/users/vitali-usik","html_url":"https://github.com/vitali-usik","followers_url":"https://api.github.com/users/vitali-usik/followers","following_url":"https://api.github.com/users/vitali-usik/following{/other_user}","gists_url":"https://api.github.com/users/vitali-usik/gists{/gist_id}","starred_url":"https://api.github.com/users/vitali-usik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitali-usik/subscriptions","organizations_url":"https://api.github.com/users/vitali-usik/orgs","repos_url":"https://api.github.com/users/vitali-usik/repos","events_url":"https://api.github.com/users/vitali-usik/events{/privacy}","received_events_url":"https://api.github.com/users/vitali-usik/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/pulls/3/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/pulls/3/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/issues/3/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/statuses/70eb22e1a0ec4184d30477770aa86fc616245fc9","head":{"label":"WhiteCorvin:module3-task3","ref":"module3-task3","sha":"70eb22e1a0ec4184d30477770aa86fc616245fc9","user":{"login":"WhiteCorvin","id":43922962,"node_id":"MDQ6VXNlcjQzOTIyOTYy","avatar_url":"https://avatars1.githubusercontent.com/u/43922962?v=4","gravatar_id":"","url":"https://api.github.com/users/WhiteCorvin","html_url":"https://github.com/WhiteCorvin","followers_url":"https://api.github.com/users/WhiteCorvin/followers","following_url":"https://api.github.com/users/WhiteCorvin/following{/other_user}","gists_url":"https://api.github.com/users/WhiteCorvin/gists{/gist_id}","starred_url":"https://api.github.com/users/WhiteCorvin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WhiteCorvin/subscriptions","organizations_url":"https://api.github.com/users/WhiteCorvin/orgs","repos_url":"https://api.github.com/users/WhiteCorvin/repos","events_url":"https://api.github.com/users/WhiteCorvin/events{/privacy}","received_events_url":"https://api.github.com/users/WhiteCorvin/received_events","type":"User","site_admin":false},"repo":{"id":207682286,"node_id":"MDEwOlJlcG9zaXRvcnkyMDc2ODIyODY=","name":"13452-keksobooking-18","full_name":"WhiteCorvin/13452-keksobooking-18","private":false,"owner":{"login":"WhiteCorvin","id":43922962,"node_id":"MDQ6VXNlcjQzOTIyOTYy","avatar_url":"https://avatars1.githubusercontent.com/u/43922962?v=4","gravatar_id":"","url":"https://api.github.com/users/WhiteCorvin","html_url":"https://github.com/WhiteCorvin","followers_url":"https://api.github.com/users/WhiteCorvin/followers","following_url":"https://api.github.com/users/WhiteCorvin/following{/other_user}","gists_url":"https://api.github.com/users/WhiteCorvin/gists{/gist_id}","starred_url":"https://api.github.com/users/WhiteCorvin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WhiteCorvin/subscriptions","organizations_url":"https://api.github.com/users/WhiteCorvin/orgs","repos_url":"https://api.github.com/users/WhiteCorvin/repos","events_url":"https://api.github.com/users/WhiteCorvin/events{/privacy}","received_events_url":"https://api.github.com/users/WhiteCorvin/received_events","type":"User","site_admin":false},"html_url":"https://github.com/WhiteCorvin/13452-keksobooking-18","description":"Павел Петров","fork":true,"url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18","forks_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/forks","keys_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/teams","hooks_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/hooks","issue_events_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/issues/events{/number}","events_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/events","assignees_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/assignees{/user}","branches_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/branches{/branch}","tags_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/tags","blobs_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/git/refs{/sha}","trees_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/statuses/{sha}","languages_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/languages","stargazers_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/stargazers","contributors_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/contributors","subscribers_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/subscribers","subscription_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/subscription","commits_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/commits{/sha}","git_commits_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/git/commits{/sha}","comments_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/comments{/number}","issue_comment_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/issues/comments{/number}","contents_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/contents/{+path}","compare_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/merges","archive_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/downloads","issues_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/issues{/number}","pulls_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/pulls{/number}","milestones_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/milestones{/number}","notifications_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/labels{/name}","releases_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/releases{/id}","deployments_url":"https://api.github.com/repos/WhiteCorvin/13452-keksobooking-18/deployments","created_at":"2019-09-10T23:38:21Z","updated_at":"2019-09-20T03:36:11Z","pushed_at":"2019-09-20T07:56:31Z","git_url":"git://github.com/WhiteCorvin/13452-keksobooking-18.git","ssh_url":"git@github.com:WhiteCorvin/13452-keksobooking-18.git","clone_url":"https://github.com/WhiteCorvin/13452-keksobooking-18.git","svn_url":"https://github.com/WhiteCorvin/13452-keksobooking-18","homepage":null,"size":881,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"htmlacademy-javascript:master","ref":"master","sha":"eb23b7c029e2ebefdbebdcdc7d275a49304c1dae","user":{"login":"htmlacademy-javascript","id":14179712,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTc5NzEy","avatar_url":"https://avatars2.githubusercontent.com/u/14179712?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-javascript","html_url":"https://github.com/htmlacademy-javascript","followers_url":"https://api.github.com/users/htmlacademy-javascript/followers","following_url":"https://api.github.com/users/htmlacademy-javascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-javascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-javascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-javascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-javascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-javascript/repos","events_url":"https://api.github.com/users/htmlacademy-javascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-javascript/received_events","type":"Organization","site_admin":false},"repo":{"id":207682021,"node_id":"MDEwOlJlcG9zaXRvcnkyMDc2ODIwMjE=","name":"13452-keksobooking-18","full_name":"htmlacademy-javascript/13452-keksobooking-18","private":false,"owner":{"login":"htmlacademy-javascript","id":14179712,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTc5NzEy","avatar_url":"https://avatars2.githubusercontent.com/u/14179712?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-javascript","html_url":"https://github.com/htmlacademy-javascript","followers_url":"https://api.github.com/users/htmlacademy-javascript/followers","following_url":"https://api.github.com/users/htmlacademy-javascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-javascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-javascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-javascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-javascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-javascript/repos","events_url":"https://api.github.com/users/htmlacademy-javascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-javascript/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/htmlacademy-javascript/13452-keksobooking-18","description":"Павел Петров","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18","forks_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/deployments","created_at":"2019-09-10T23:35:53Z","updated_at":"2019-09-19T17:03:25Z","pushed_at":"2019-09-20T08:24:31Z","git_url":"git://github.com/htmlacademy-javascript/13452-keksobooking-18.git","ssh_url":"git@github.com:htmlacademy-javascript/13452-keksobooking-18.git","clone_url":"https://github.com/htmlacademy-javascript/13452-keksobooking-18.git","svn_url":"https://github.com/htmlacademy-javascript/13452-keksobooking-18","homepage":"https://github.com/WhiteCorvin/13452-keksobooking-18","size":887,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":2,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":null,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/pulls/3"},"html":{"href":"https://github.com/htmlacademy-javascript/13452-keksobooking-18/pull/3"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/issues/3"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/13452-keksobooking-18/statuses/70eb22e1a0ec4184d30477770aa86fc616245fc9"}},"author_association":"CONTRIBUTOR"}}
other: {"actor":{"display_login":"vitali-usik"}}