{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/pulls/comments/221222603","pull_request_review_id":159820424,"id":221222603,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMTIyMjYwMw==","diff_hunk":"@@ -31,6 +31,32 @@\n     });\n   };\n \n+  var resetCheckboxes = function (checkboxes) {\n+    checkboxes.forEach(function (checkbox) {\n+      if (checkbox.checked) {\n+        checkbox.checked = false;\n+      }\n+    });\n+  };\n+\n+  var isElementExistInArray = function (element, array) {\n+    if (~array.indexOf(element)) {\n+      return true;\n+    }\n+\n+    return false;\n+  };","path":"js/util.js","position":18,"original_position":18,"commit_id":"6cb94991bbd68681b3468a377415b23a792920aa","original_commit_id":"6cb94991bbd68681b3468a377415b23a792920aa","user":{"login":"fyvfyv","id":3251438,"node_id":"MDQ6VXNlcjMyNTE0Mzg=","avatar_url":"https://avatars2.githubusercontent.com/u/3251438?v=4","gravatar_id":"","url":"https://api.github.com/users/fyvfyv","html_url":"https://github.com/fyvfyv","followers_url":"https://api.github.com/users/fyvfyv/followers","following_url":"https://api.github.com/users/fyvfyv/following{/other_user}","gists_url":"https://api.github.com/users/fyvfyv/gists{/gist_id}","starred_url":"https://api.github.com/users/fyvfyv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fyvfyv/subscriptions","organizations_url":"https://api.github.com/users/fyvfyv/orgs","repos_url":"https://api.github.com/users/fyvfyv/repos","events_url":"https://api.github.com/users/fyvfyv/events{/privacy}","received_events_url":"https://api.github.com/users/fyvfyv/received_events","type":"User","site_admin":false},"body":"Знаешь что делает твоя функция? Вот это:\r\n`array.indexOf(element) > -1`\r\nи всё...","created_at":"2018-09-28T11:28:33Z","updated_at":"2018-09-28T11:34:53Z","html_url":"https://github.com/htmlacademy-javascript/40730-keksobooking/pull/8#discussion_r221222603","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/pulls/8","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/pulls/comments/221222603"},"html":{"href":"https://github.com/htmlacademy-javascript/40730-keksobooking/pull/8#discussion_r221222603"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/pulls/8","id":218932930,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE4OTMyOTMw","html_url":"https://github.com/htmlacademy-javascript/40730-keksobooking/pull/8","diff_url":"https://github.com/htmlacademy-javascript/40730-keksobooking/pull/8.diff","patch_url":"https://github.com/htmlacademy-javascript/40730-keksobooking/pull/8.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/issues/8","number":8,"state":"open","locked":false,"title":"Личный проект: перламутровые пуговицы","user":{"login":"romanzemerov","id":41733600,"node_id":"MDQ6VXNlcjQxNzMzNjAw","avatar_url":"https://avatars2.githubusercontent.com/u/41733600?v=4","gravatar_id":"","url":"https://api.github.com/users/romanzemerov","html_url":"https://github.com/romanzemerov","followers_url":"https://api.github.com/users/romanzemerov/followers","following_url":"https://api.github.com/users/romanzemerov/following{/other_user}","gists_url":"https://api.github.com/users/romanzemerov/gists{/gist_id}","starred_url":"https://api.github.com/users/romanzemerov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romanzemerov/subscriptions","organizations_url":"https://api.github.com/users/romanzemerov/orgs","repos_url":"https://api.github.com/users/romanzemerov/repos","events_url":"https://api.github.com/users/romanzemerov/events{/privacy}","received_events_url":"https://api.github.com/users/romanzemerov/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Личный проект: перламутровые пуговицы](https://up.htmlacademy.ru/javascript/15/user/40730/tasks/25)\n\n:boom: https://htmlacademy-javascript.github.io/40730-keksobooking/8/","created_at":"2018-09-28T11:07:55Z","updated_at":"2018-09-28T11:34:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"51f20e0dd53dcc8f202cd1fbcdd8d978b53953bf","assignee":{"login":"fyvfyv","id":3251438,"node_id":"MDQ6VXNlcjMyNTE0Mzg=","avatar_url":"https://avatars2.githubusercontent.com/u/3251438?v=4","gravatar_id":"","url":"https://api.github.com/users/fyvfyv","html_url":"https://github.com/fyvfyv","followers_url":"https://api.github.com/users/fyvfyv/followers","following_url":"https://api.github.com/users/fyvfyv/following{/other_user}","gists_url":"https://api.github.com/users/fyvfyv/gists{/gist_id}","starred_url":"https://api.github.com/users/fyvfyv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fyvfyv/subscriptions","organizations_url":"https://api.github.com/users/fyvfyv/orgs","repos_url":"https://api.github.com/users/fyvfyv/repos","events_url":"https://api.github.com/users/fyvfyv/events{/privacy}","received_events_url":"https://api.github.com/users/fyvfyv/received_events","type":"User","site_admin":false},"assignees":[{"login":"fyvfyv","id":3251438,"node_id":"MDQ6VXNlcjMyNTE0Mzg=","avatar_url":"https://avatars2.githubusercontent.com/u/3251438?v=4","gravatar_id":"","url":"https://api.github.com/users/fyvfyv","html_url":"https://github.com/fyvfyv","followers_url":"https://api.github.com/users/fyvfyv/followers","following_url":"https://api.github.com/users/fyvfyv/following{/other_user}","gists_url":"https://api.github.com/users/fyvfyv/gists{/gist_id}","starred_url":"https://api.github.com/users/fyvfyv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fyvfyv/subscriptions","organizations_url":"https://api.github.com/users/fyvfyv/orgs","repos_url":"https://api.github.com/users/fyvfyv/repos","events_url":"https://api.github.com/users/fyvfyv/events{/privacy}","received_events_url":"https://api.github.com/users/fyvfyv/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/pulls/8/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/pulls/8/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/issues/8/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/statuses/6cb94991bbd68681b3468a377415b23a792920aa","head":{"label":"romanzemerov:module7-task1","ref":"module7-task1","sha":"6cb94991bbd68681b3468a377415b23a792920aa","user":{"login":"romanzemerov","id":41733600,"node_id":"MDQ6VXNlcjQxNzMzNjAw","avatar_url":"https://avatars2.githubusercontent.com/u/41733600?v=4","gravatar_id":"","url":"https://api.github.com/users/romanzemerov","html_url":"https://github.com/romanzemerov","followers_url":"https://api.github.com/users/romanzemerov/followers","following_url":"https://api.github.com/users/romanzemerov/following{/other_user}","gists_url":"https://api.github.com/users/romanzemerov/gists{/gist_id}","starred_url":"https://api.github.com/users/romanzemerov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romanzemerov/subscriptions","organizations_url":"https://api.github.com/users/romanzemerov/orgs","repos_url":"https://api.github.com/users/romanzemerov/repos","events_url":"https://api.github.com/users/romanzemerov/events{/privacy}","received_events_url":"https://api.github.com/users/romanzemerov/received_events","type":"User","site_admin":false},"repo":{"id":146771569,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY3NzE1Njk=","name":"40730-keksobooking","full_name":"romanzemerov/40730-keksobooking","private":false,"owner":{"login":"romanzemerov","id":41733600,"node_id":"MDQ6VXNlcjQxNzMzNjAw","avatar_url":"https://avatars2.githubusercontent.com/u/41733600?v=4","gravatar_id":"","url":"https://api.github.com/users/romanzemerov","html_url":"https://github.com/romanzemerov","followers_url":"https://api.github.com/users/romanzemerov/followers","following_url":"https://api.github.com/users/romanzemerov/following{/other_user}","gists_url":"https://api.github.com/users/romanzemerov/gists{/gist_id}","starred_url":"https://api.github.com/users/romanzemerov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romanzemerov/subscriptions","organizations_url":"https://api.github.com/users/romanzemerov/orgs","repos_url":"https://api.github.com/users/romanzemerov/repos","events_url":"https://api.github.com/users/romanzemerov/events{/privacy}","received_events_url":"https://api.github.com/users/romanzemerov/received_events","type":"User","site_admin":false},"html_url":"https://github.com/romanzemerov/40730-keksobooking","description":"Роман Земеров","fork":true,"url":"https://api.github.com/repos/romanzemerov/40730-keksobooking","forks_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/forks","keys_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/teams","hooks_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/events","assignees_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/tags","blobs_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/languages","stargazers_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/subscription","commits_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/merges","archive_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/downloads","issues_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/romanzemerov/40730-keksobooking/deployments","created_at":"2018-08-30T15:42:14Z","updated_at":"2018-09-27T11:58:17Z","pushed_at":"2018-09-28T11:07:15Z","git_url":"git://github.com/romanzemerov/40730-keksobooking.git","ssh_url":"git@github.com:romanzemerov/40730-keksobooking.git","clone_url":"https://github.com/romanzemerov/40730-keksobooking.git","svn_url":"https://github.com/romanzemerov/40730-keksobooking","homepage":null,"size":941,"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,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"htmlacademy-javascript:master","ref":"master","sha":"8cc8a1f8291b93c50691b92a12e3efc627e4555b","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":146730004,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY3MzAwMDQ=","name":"40730-keksobooking","full_name":"htmlacademy-javascript/40730-keksobooking","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/40730-keksobooking","description":"Роман Земеров","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking","forks_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/deployments","created_at":"2018-08-30T09:53:34Z","updated_at":"2018-09-26T19:43:31Z","pushed_at":"2018-09-28T11:13:27Z","git_url":"git://github.com/htmlacademy-javascript/40730-keksobooking.git","ssh_url":"git@github.com:htmlacademy-javascript/40730-keksobooking.git","clone_url":"https://github.com/htmlacademy-javascript/40730-keksobooking.git","svn_url":"https://github.com/htmlacademy-javascript/40730-keksobooking","homepage":"https://github.com/romanzemerov/40730-keksobooking","size":976,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_projects":false,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/pulls/8"},"html":{"href":"https://github.com/htmlacademy-javascript/40730-keksobooking/pull/8"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/issues/8"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/40730-keksobooking/statuses/6cb94991bbd68681b3468a377415b23a792920aa"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"fyvfyv"}}