{"action":"created","comment":{"url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/pulls/comments/87790344","pull_request_review_id":8386118,"id":87790344,"diff_hunk":"@@ -0,0 +1,157 @@\n+let array = [1, 2, 3, 4, 5, 6];\n+\n+function forEach (arr, callback) {\n+\tif(!arr.length) throw new Error(\"пустой массив\");\n+\tfor (var i = 0; i < arr.length; i++) {\n+\t\tcallback(arr[i]);\n+\t};\n+}\n+\n+function filter (arr, callback) {\n+\tif(!arr.length) throw new Error(\"пустой массив\");\n+\tvar resArr = [],\n+\t\tcount = 0;\n+\tfor (var i = 0; i < arr.length; i++) {\n+\t\tif(callback(arr[i])){\n+\t\t\tresArr[count] = arr[i];\n+\t\t\tcount++;\n+\t\t}\n+\t}\n+\treturn resArr;\n+}\n+\n+function map (arr, callback) {\n+\tif(!arr.length) throw new Error(\"пустой массив\");\n+\tvar resArr = [];\n+\tfor (var i = 0; i < arr.length; i++) {\n+\t\tresArr[i] = callback(arr[i]);\n+\t}\n+\treturn resArr;\n+}\n+\n+\n+function slice (arr, start = 0, end) {\n+\tif(!arr.length) throw new Error(\"пустой массив\");\n+\tvar resArr = [];\n+\tend = (end)? end : arr.length;\n+\tfor (var i = start, j = 0; i < end; i++, j++) {\n+\t\tresArr[j] = arr[i];\n+\t};\n+\treturn resArr;\n+}\n+\n+function reduce (arr, callback, initialValue) {","path":"hm3/01/main.js","position":43,"original_position":43,"commit_id":"2ff28ae767350eeea91907ab6087d244f2185eb2","original_commit_id":"2ff28ae767350eeea91907ab6087d244f2185eb2","user":{"login":"smelukov","id":6654581,"avatar_url":"https://avatars.githubusercontent.com/u/6654581?v=3","gravatar_id":"","url":"https://api.github.com/users/smelukov","html_url":"https://github.com/smelukov","followers_url":"https://api.github.com/users/smelukov/followers","following_url":"https://api.github.com/users/smelukov/following{/other_user}","gists_url":"https://api.github.com/users/smelukov/gists{/gist_id}","starred_url":"https://api.github.com/users/smelukov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smelukov/subscriptions","organizations_url":"https://api.github.com/users/smelukov/orgs","repos_url":"https://api.github.com/users/smelukov/repos","events_url":"https://api.github.com/users/smelukov/events{/privacy}","received_events_url":"https://api.github.com/users/smelukov/received_events","type":"User","site_admin":false},"body":"что-то очень много всего...\r\nпопробуй упростить","created_at":"2016-11-14T12:22:02Z","updated_at":"2016-11-14T12:22:42Z","html_url":"https://github.com/someAlinka/someAlinkaLoftHome.github.io/pull/5#discussion_r87790344","pull_request_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/pulls/comments/87790344"},"html":{"href":"https://github.com/someAlinka/someAlinkaLoftHome.github.io/pull/5#discussion_r87790344"},"pull_request":{"href":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/pulls/5","id":93478298,"html_url":"https://github.com/someAlinka/someAlinkaLoftHome.github.io/pull/5","diff_url":"https://github.com/someAlinka/someAlinkaLoftHome.github.io/pull/5.diff","patch_url":"https://github.com/someAlinka/someAlinkaLoftHome.github.io/pull/5.patch","issue_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/issues/5","number":5,"state":"open","locked":false,"title":"added the first task on the third homework","user":{"login":"someAlinka","id":16005189,"avatar_url":"https://avatars.githubusercontent.com/u/16005189?v=3","gravatar_id":"","url":"https://api.github.com/users/someAlinka","html_url":"https://github.com/someAlinka","followers_url":"https://api.github.com/users/someAlinka/followers","following_url":"https://api.github.com/users/someAlinka/following{/other_user}","gists_url":"https://api.github.com/users/someAlinka/gists{/gist_id}","starred_url":"https://api.github.com/users/someAlinka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/someAlinka/subscriptions","organizations_url":"https://api.github.com/users/someAlinka/orgs","repos_url":"https://api.github.com/users/someAlinka/repos","events_url":"https://api.github.com/users/someAlinka/events{/privacy}","received_events_url":"https://api.github.com/users/someAlinka/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-13T16:41:09Z","updated_at":"2016-11-14T12:22:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1b00f083dffc88dfece8dd97370906f935ec8532","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/pulls/5/commits","review_comments_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/pulls/5/comments","review_comment_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/issues/5/comments","statuses_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/statuses/2ff28ae767350eeea91907ab6087d244f2185eb2","head":{"label":"someAlinka:hm3_1","ref":"hm3_1","sha":"2ff28ae767350eeea91907ab6087d244f2185eb2","user":{"login":"someAlinka","id":16005189,"avatar_url":"https://avatars.githubusercontent.com/u/16005189?v=3","gravatar_id":"","url":"https://api.github.com/users/someAlinka","html_url":"https://github.com/someAlinka","followers_url":"https://api.github.com/users/someAlinka/followers","following_url":"https://api.github.com/users/someAlinka/following{/other_user}","gists_url":"https://api.github.com/users/someAlinka/gists{/gist_id}","starred_url":"https://api.github.com/users/someAlinka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/someAlinka/subscriptions","organizations_url":"https://api.github.com/users/someAlinka/orgs","repos_url":"https://api.github.com/users/someAlinka/repos","events_url":"https://api.github.com/users/someAlinka/events{/privacy}","received_events_url":"https://api.github.com/users/someAlinka/received_events","type":"User","site_admin":false},"repo":{"id":73312036,"name":"someAlinkaLoftHome.github.io","full_name":"someAlinka/someAlinkaLoftHome.github.io","owner":{"login":"someAlinka","id":16005189,"avatar_url":"https://avatars.githubusercontent.com/u/16005189?v=3","gravatar_id":"","url":"https://api.github.com/users/someAlinka","html_url":"https://github.com/someAlinka","followers_url":"https://api.github.com/users/someAlinka/followers","following_url":"https://api.github.com/users/someAlinka/following{/other_user}","gists_url":"https://api.github.com/users/someAlinka/gists{/gist_id}","starred_url":"https://api.github.com/users/someAlinka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/someAlinka/subscriptions","organizations_url":"https://api.github.com/users/someAlinka/orgs","repos_url":"https://api.github.com/users/someAlinka/repos","events_url":"https://api.github.com/users/someAlinka/events{/privacy}","received_events_url":"https://api.github.com/users/someAlinka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/someAlinka/someAlinkaLoftHome.github.io","description":null,"fork":false,"url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io","forks_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/forks","keys_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/teams","hooks_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/hooks","issue_events_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/issues/events{/number}","events_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/events","assignees_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/assignees{/user}","branches_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/branches{/branch}","tags_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/tags","blobs_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/statuses/{sha}","languages_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/languages","stargazers_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/stargazers","contributors_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/contributors","subscribers_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/subscribers","subscription_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/subscription","commits_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/contents/{+path}","compare_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/merges","archive_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/downloads","issues_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/issues{/number}","pulls_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/pulls{/number}","milestones_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/milestones{/number}","notifications_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/labels{/name}","releases_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/releases{/id}","deployments_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/deployments","created_at":"2016-11-09T18:51:46Z","updated_at":"2016-11-09T18:56:28Z","pushed_at":"2016-11-13T16:41:10Z","git_url":"git://github.com/someAlinka/someAlinkaLoftHome.github.io.git","ssh_url":"git@github.com:someAlinka/someAlinkaLoftHome.github.io.git","clone_url":"https://github.com/someAlinka/someAlinkaLoftHome.github.io.git","svn_url":"https://github.com/someAlinka/someAlinkaLoftHome.github.io","homepage":null,"size":54,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"someAlinka:master","ref":"master","sha":"236cc0ecee9494ebc846e8123ac2cde91a8021ea","user":{"login":"someAlinka","id":16005189,"avatar_url":"https://avatars.githubusercontent.com/u/16005189?v=3","gravatar_id":"","url":"https://api.github.com/users/someAlinka","html_url":"https://github.com/someAlinka","followers_url":"https://api.github.com/users/someAlinka/followers","following_url":"https://api.github.com/users/someAlinka/following{/other_user}","gists_url":"https://api.github.com/users/someAlinka/gists{/gist_id}","starred_url":"https://api.github.com/users/someAlinka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/someAlinka/subscriptions","organizations_url":"https://api.github.com/users/someAlinka/orgs","repos_url":"https://api.github.com/users/someAlinka/repos","events_url":"https://api.github.com/users/someAlinka/events{/privacy}","received_events_url":"https://api.github.com/users/someAlinka/received_events","type":"User","site_admin":false},"repo":{"id":73312036,"name":"someAlinkaLoftHome.github.io","full_name":"someAlinka/someAlinkaLoftHome.github.io","owner":{"login":"someAlinka","id":16005189,"avatar_url":"https://avatars.githubusercontent.com/u/16005189?v=3","gravatar_id":"","url":"https://api.github.com/users/someAlinka","html_url":"https://github.com/someAlinka","followers_url":"https://api.github.com/users/someAlinka/followers","following_url":"https://api.github.com/users/someAlinka/following{/other_user}","gists_url":"https://api.github.com/users/someAlinka/gists{/gist_id}","starred_url":"https://api.github.com/users/someAlinka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/someAlinka/subscriptions","organizations_url":"https://api.github.com/users/someAlinka/orgs","repos_url":"https://api.github.com/users/someAlinka/repos","events_url":"https://api.github.com/users/someAlinka/events{/privacy}","received_events_url":"https://api.github.com/users/someAlinka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/someAlinka/someAlinkaLoftHome.github.io","description":null,"fork":false,"url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io","forks_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/forks","keys_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/teams","hooks_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/hooks","issue_events_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/issues/events{/number}","events_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/events","assignees_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/assignees{/user}","branches_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/branches{/branch}","tags_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/tags","blobs_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/statuses/{sha}","languages_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/languages","stargazers_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/stargazers","contributors_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/contributors","subscribers_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/subscribers","subscription_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/subscription","commits_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/contents/{+path}","compare_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/merges","archive_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/downloads","issues_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/issues{/number}","pulls_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/pulls{/number}","milestones_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/milestones{/number}","notifications_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/labels{/name}","releases_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/releases{/id}","deployments_url":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/deployments","created_at":"2016-11-09T18:51:46Z","updated_at":"2016-11-09T18:56:28Z","pushed_at":"2016-11-13T16:41:10Z","git_url":"git://github.com/someAlinka/someAlinkaLoftHome.github.io.git","ssh_url":"git@github.com:someAlinka/someAlinkaLoftHome.github.io.git","clone_url":"https://github.com/someAlinka/someAlinkaLoftHome.github.io.git","svn_url":"https://github.com/someAlinka/someAlinkaLoftHome.github.io","homepage":null,"size":54,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/pulls/5"},"html":{"href":"https://github.com/someAlinka/someAlinkaLoftHome.github.io/pull/5"},"issue":{"href":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/issues/5"},"comments":{"href":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/someAlinka/someAlinkaLoftHome.github.io/statuses/2ff28ae767350eeea91907ab6087d244f2185eb2"}}}}
{"actor":{"display_login":"smelukov"}}