{"action":"created","comment":{"url":"https://api.github.com/repos/eclip5e/training/pulls/comments/33975276","id":33975276,"diff_hunk":"@@ -0,0 +1,36 @@\n+(function () {\n+    'use strict';\n+\n+    var numbersArray = [1, -4, 9, -16, 25, -50];\n+\n+    // Filter function.\n+    function filter(sourceArray, callback) {\n+        var newArray = [];\n+\n+        // Iterating over array passed to filter() function.\n+        sourceArray.forEach(function (item) {\n+            if(callback(item)) newArray.push(item);","path":"Assignments/6/js/script.js","position":12,"original_position":12,"commit_id":"57cca8dd15d7af0f607f404e19169263b5eacb97","original_commit_id":"57cca8dd15d7af0f607f404e19169263b5eacb97","user":{"login":"Shalimov","id":5468176,"avatar_url":"https://avatars.githubusercontent.com/u/5468176?v=3","gravatar_id":"","url":"https://api.github.com/users/Shalimov","html_url":"https://github.com/Shalimov","followers_url":"https://api.github.com/users/Shalimov/followers","following_url":"https://api.github.com/users/Shalimov/following{/other_user}","gists_url":"https://api.github.com/users/Shalimov/gists{/gist_id}","starred_url":"https://api.github.com/users/Shalimov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shalimov/subscriptions","organizations_url":"https://api.github.com/users/Shalimov/orgs","repos_url":"https://api.github.com/users/Shalimov/repos","events_url":"https://api.github.com/users/Shalimov/events{/privacy}","received_events_url":"https://api.github.com/users/Shalimov/received_events","type":"User","site_admin":false},"body":"Иногда может пригодиься фильтрация по индексам, было бы здорово передавать в callback ещё и индекс.","created_at":"2015-07-06T19:56:40Z","updated_at":"2015-07-06T19:56:40Z","html_url":"https://github.com/eclip5e/training/pull/1#discussion_r33975276","pull_request_url":"https://api.github.com/repos/eclip5e/training/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/eclip5e/training/pulls/comments/33975276"},"html":{"href":"https://github.com/eclip5e/training/pull/1#discussion_r33975276"},"pull_request":{"href":"https://api.github.com/repos/eclip5e/training/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/eclip5e/training/pulls/1","id":36500004,"html_url":"https://github.com/eclip5e/training/pull/1","diff_url":"https://github.com/eclip5e/training/pull/1.diff","patch_url":"https://github.com/eclip5e/training/pull/1.patch","issue_url":"https://api.github.com/repos/eclip5e/training/issues/1","number":1,"state":"open","locked":false,"title":"Appointments (Functional Programming)","user":{"login":"eclip5e","id":3023692,"avatar_url":"https://avatars.githubusercontent.com/u/3023692?v=3","gravatar_id":"","url":"https://api.github.com/users/eclip5e","html_url":"https://github.com/eclip5e","followers_url":"https://api.github.com/users/eclip5e/followers","following_url":"https://api.github.com/users/eclip5e/following{/other_user}","gists_url":"https://api.github.com/users/eclip5e/gists{/gist_id}","starred_url":"https://api.github.com/users/eclip5e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclip5e/subscriptions","organizations_url":"https://api.github.com/users/eclip5e/orgs","repos_url":"https://api.github.com/users/eclip5e/repos","events_url":"https://api.github.com/users/eclip5e/events{/privacy}","received_events_url":"https://api.github.com/users/eclip5e/received_events","type":"User","site_admin":false},"body":"Pull request for resolved problems review.","created_at":"2015-05-29T12:22:30Z","updated_at":"2015-07-06T19:56:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"187320d0524b5ba9eeb34ac7dcdcdbee2a0e4838","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/eclip5e/training/pulls/1/commits","review_comments_url":"https://api.github.com/repos/eclip5e/training/pulls/1/comments","review_comment_url":"https://api.github.com/repos/eclip5e/training/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eclip5e/training/issues/1/comments","statuses_url":"https://api.github.com/repos/eclip5e/training/statuses/57cca8dd15d7af0f607f404e19169263b5eacb97","head":{"label":"eclip5e:development","ref":"development","sha":"57cca8dd15d7af0f607f404e19169263b5eacb97","user":{"login":"eclip5e","id":3023692,"avatar_url":"https://avatars.githubusercontent.com/u/3023692?v=3","gravatar_id":"","url":"https://api.github.com/users/eclip5e","html_url":"https://github.com/eclip5e","followers_url":"https://api.github.com/users/eclip5e/followers","following_url":"https://api.github.com/users/eclip5e/following{/other_user}","gists_url":"https://api.github.com/users/eclip5e/gists{/gist_id}","starred_url":"https://api.github.com/users/eclip5e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclip5e/subscriptions","organizations_url":"https://api.github.com/users/eclip5e/orgs","repos_url":"https://api.github.com/users/eclip5e/repos","events_url":"https://api.github.com/users/eclip5e/events{/privacy}","received_events_url":"https://api.github.com/users/eclip5e/received_events","type":"User","site_admin":false},"repo":{"id":36368858,"name":"training","full_name":"eclip5e/training","owner":{"login":"eclip5e","id":3023692,"avatar_url":"https://avatars.githubusercontent.com/u/3023692?v=3","gravatar_id":"","url":"https://api.github.com/users/eclip5e","html_url":"https://github.com/eclip5e","followers_url":"https://api.github.com/users/eclip5e/followers","following_url":"https://api.github.com/users/eclip5e/following{/other_user}","gists_url":"https://api.github.com/users/eclip5e/gists{/gist_id}","starred_url":"https://api.github.com/users/eclip5e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclip5e/subscriptions","organizations_url":"https://api.github.com/users/eclip5e/orgs","repos_url":"https://api.github.com/users/eclip5e/repos","events_url":"https://api.github.com/users/eclip5e/events{/privacy}","received_events_url":"https://api.github.com/users/eclip5e/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eclip5e/training","description":"Personal training repository.","fork":false,"url":"https://api.github.com/repos/eclip5e/training","forks_url":"https://api.github.com/repos/eclip5e/training/forks","keys_url":"https://api.github.com/repos/eclip5e/training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eclip5e/training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eclip5e/training/teams","hooks_url":"https://api.github.com/repos/eclip5e/training/hooks","issue_events_url":"https://api.github.com/repos/eclip5e/training/issues/events{/number}","events_url":"https://api.github.com/repos/eclip5e/training/events","assignees_url":"https://api.github.com/repos/eclip5e/training/assignees{/user}","branches_url":"https://api.github.com/repos/eclip5e/training/branches{/branch}","tags_url":"https://api.github.com/repos/eclip5e/training/tags","blobs_url":"https://api.github.com/repos/eclip5e/training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eclip5e/training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eclip5e/training/git/refs{/sha}","trees_url":"https://api.github.com/repos/eclip5e/training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eclip5e/training/statuses/{sha}","languages_url":"https://api.github.com/repos/eclip5e/training/languages","stargazers_url":"https://api.github.com/repos/eclip5e/training/stargazers","contributors_url":"https://api.github.com/repos/eclip5e/training/contributors","subscribers_url":"https://api.github.com/repos/eclip5e/training/subscribers","subscription_url":"https://api.github.com/repos/eclip5e/training/subscription","commits_url":"https://api.github.com/repos/eclip5e/training/commits{/sha}","git_commits_url":"https://api.github.com/repos/eclip5e/training/git/commits{/sha}","comments_url":"https://api.github.com/repos/eclip5e/training/comments{/number}","issue_comment_url":"https://api.github.com/repos/eclip5e/training/issues/comments{/number}","contents_url":"https://api.github.com/repos/eclip5e/training/contents/{+path}","compare_url":"https://api.github.com/repos/eclip5e/training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eclip5e/training/merges","archive_url":"https://api.github.com/repos/eclip5e/training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eclip5e/training/downloads","issues_url":"https://api.github.com/repos/eclip5e/training/issues{/number}","pulls_url":"https://api.github.com/repos/eclip5e/training/pulls{/number}","milestones_url":"https://api.github.com/repos/eclip5e/training/milestones{/number}","notifications_url":"https://api.github.com/repos/eclip5e/training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eclip5e/training/labels{/name}","releases_url":"https://api.github.com/repos/eclip5e/training/releases{/id}","created_at":"2015-05-27T13:33:41Z","updated_at":"2015-06-08T13:41:53Z","pushed_at":"2015-06-23T09:26:19Z","git_url":"git://github.com/eclip5e/training.git","ssh_url":"git@github.com:eclip5e/training.git","clone_url":"https://github.com/eclip5e/training.git","svn_url":"https://github.com/eclip5e/training","homepage":null,"size":220,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"eclip5e:master","ref":"master","sha":"a20c57239ccf8052c25874d46888201e05dc9900","user":{"login":"eclip5e","id":3023692,"avatar_url":"https://avatars.githubusercontent.com/u/3023692?v=3","gravatar_id":"","url":"https://api.github.com/users/eclip5e","html_url":"https://github.com/eclip5e","followers_url":"https://api.github.com/users/eclip5e/followers","following_url":"https://api.github.com/users/eclip5e/following{/other_user}","gists_url":"https://api.github.com/users/eclip5e/gists{/gist_id}","starred_url":"https://api.github.com/users/eclip5e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclip5e/subscriptions","organizations_url":"https://api.github.com/users/eclip5e/orgs","repos_url":"https://api.github.com/users/eclip5e/repos","events_url":"https://api.github.com/users/eclip5e/events{/privacy}","received_events_url":"https://api.github.com/users/eclip5e/received_events","type":"User","site_admin":false},"repo":{"id":36368858,"name":"training","full_name":"eclip5e/training","owner":{"login":"eclip5e","id":3023692,"avatar_url":"https://avatars.githubusercontent.com/u/3023692?v=3","gravatar_id":"","url":"https://api.github.com/users/eclip5e","html_url":"https://github.com/eclip5e","followers_url":"https://api.github.com/users/eclip5e/followers","following_url":"https://api.github.com/users/eclip5e/following{/other_user}","gists_url":"https://api.github.com/users/eclip5e/gists{/gist_id}","starred_url":"https://api.github.com/users/eclip5e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclip5e/subscriptions","organizations_url":"https://api.github.com/users/eclip5e/orgs","repos_url":"https://api.github.com/users/eclip5e/repos","events_url":"https://api.github.com/users/eclip5e/events{/privacy}","received_events_url":"https://api.github.com/users/eclip5e/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eclip5e/training","description":"Personal training repository.","fork":false,"url":"https://api.github.com/repos/eclip5e/training","forks_url":"https://api.github.com/repos/eclip5e/training/forks","keys_url":"https://api.github.com/repos/eclip5e/training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eclip5e/training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eclip5e/training/teams","hooks_url":"https://api.github.com/repos/eclip5e/training/hooks","issue_events_url":"https://api.github.com/repos/eclip5e/training/issues/events{/number}","events_url":"https://api.github.com/repos/eclip5e/training/events","assignees_url":"https://api.github.com/repos/eclip5e/training/assignees{/user}","branches_url":"https://api.github.com/repos/eclip5e/training/branches{/branch}","tags_url":"https://api.github.com/repos/eclip5e/training/tags","blobs_url":"https://api.github.com/repos/eclip5e/training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eclip5e/training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eclip5e/training/git/refs{/sha}","trees_url":"https://api.github.com/repos/eclip5e/training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eclip5e/training/statuses/{sha}","languages_url":"https://api.github.com/repos/eclip5e/training/languages","stargazers_url":"https://api.github.com/repos/eclip5e/training/stargazers","contributors_url":"https://api.github.com/repos/eclip5e/training/contributors","subscribers_url":"https://api.github.com/repos/eclip5e/training/subscribers","subscription_url":"https://api.github.com/repos/eclip5e/training/subscription","commits_url":"https://api.github.com/repos/eclip5e/training/commits{/sha}","git_commits_url":"https://api.github.com/repos/eclip5e/training/git/commits{/sha}","comments_url":"https://api.github.com/repos/eclip5e/training/comments{/number}","issue_comment_url":"https://api.github.com/repos/eclip5e/training/issues/comments{/number}","contents_url":"https://api.github.com/repos/eclip5e/training/contents/{+path}","compare_url":"https://api.github.com/repos/eclip5e/training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eclip5e/training/merges","archive_url":"https://api.github.com/repos/eclip5e/training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eclip5e/training/downloads","issues_url":"https://api.github.com/repos/eclip5e/training/issues{/number}","pulls_url":"https://api.github.com/repos/eclip5e/training/pulls{/number}","milestones_url":"https://api.github.com/repos/eclip5e/training/milestones{/number}","notifications_url":"https://api.github.com/repos/eclip5e/training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eclip5e/training/labels{/name}","releases_url":"https://api.github.com/repos/eclip5e/training/releases{/id}","created_at":"2015-05-27T13:33:41Z","updated_at":"2015-06-08T13:41:53Z","pushed_at":"2015-06-23T09:26:19Z","git_url":"git://github.com/eclip5e/training.git","ssh_url":"git@github.com:eclip5e/training.git","clone_url":"https://github.com/eclip5e/training.git","svn_url":"https://github.com/eclip5e/training","homepage":null,"size":220,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eclip5e/training/pulls/1"},"html":{"href":"https://github.com/eclip5e/training/pull/1"},"issue":{"href":"https://api.github.com/repos/eclip5e/training/issues/1"},"comments":{"href":"https://api.github.com/repos/eclip5e/training/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/eclip5e/training/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/eclip5e/training/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eclip5e/training/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/eclip5e/training/statuses/57cca8dd15d7af0f607f404e19169263b5eacb97"}}}}