{"action":"created","comment":{"url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/pulls/comments/43358785","id":43358785,"diff_hunk":"@@ -15,9 +15,92 @@ module.exports.reverse = function () {\n     };\n };\n \n+//Оператор select, который выбирает из массива\n+module.exports.select = function () {\n+\tvar keys = [];\n+\treturn function (collection) {\n+\t\tvar filterCollection = [];\n+\t\tfor(var i in collection){\n+\t\t\tfilterCollection[i] = [];\n+\t\t\tkeys.forEach(function(evade){\n+\t\t\t\tfilterCollection[k][evade] = collection[k][evade];\n+\t\t\t});\n+\t\t}\n+\t\treturn filterCollection;\n+\t};\n+};\n+\n+// Оператор filterIn, который фильтрует по параметрам\n+\n+module.exports.filterIn = function (keyFilter, valueFilter) {\n+\treturn function (collection) {\n+\t\tvar filterCollection = [];\n+\t\tcollection.forEach(function(evade){\n+\t\t\tvalueFilter.forEach(function(value){\n+\t\t\t\tif(evade[keyForFilter] == value){","path":"lego.js","position":26,"original_position":26,"commit_id":"1e73054425cc6ca3b7b54152b6b1c1b2b8484809","original_commit_id":"1e73054425cc6ca3b7b54152b6b1c1b2b8484809","user":{"login":"Zhigalov","id":1654243,"avatar_url":"https://avatars.githubusercontent.com/u/1654243?v=3","gravatar_id":"","url":"https://api.github.com/users/Zhigalov","html_url":"https://github.com/Zhigalov","followers_url":"https://api.github.com/users/Zhigalov/followers","following_url":"https://api.github.com/users/Zhigalov/following{/other_user}","gists_url":"https://api.github.com/users/Zhigalov/gists{/gist_id}","starred_url":"https://api.github.com/users/Zhigalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zhigalov/subscriptions","organizations_url":"https://api.github.com/users/Zhigalov/orgs","repos_url":"https://api.github.com/users/Zhigalov/repos","events_url":"https://api.github.com/users/Zhigalov/events{/privacy}","received_events_url":"https://api.github.com/users/Zhigalov/received_events","type":"User","site_admin":false},"body":"Что такое `keyForFilter`?\r\nОн нигде не определен","created_at":"2015-10-29T08:16:19Z","updated_at":"2015-10-29T08:16:19Z","html_url":"https://github.com/urfu-2015/javascript-tasks-3/pull/63#discussion_r43358785","pull_request_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/pulls/63","_links":{"self":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/pulls/comments/43358785"},"html":{"href":"https://github.com/urfu-2015/javascript-tasks-3/pull/63#discussion_r43358785"},"pull_request":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/pulls/63"}}},"pull_request":{"url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/pulls/63","id":48181093,"html_url":"https://github.com/urfu-2015/javascript-tasks-3/pull/63","diff_url":"https://github.com/urfu-2015/javascript-tasks-3/pull/63.diff","patch_url":"https://github.com/urfu-2015/javascript-tasks-3/pull/63.patch","issue_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/issues/63","number":63,"state":"open","locked":false,"title":"Хомич Павел","user":{"login":"paulkhomich","id":14900963,"avatar_url":"https://avatars.githubusercontent.com/u/14900963?v=3","gravatar_id":"","url":"https://api.github.com/users/paulkhomich","html_url":"https://github.com/paulkhomich","followers_url":"https://api.github.com/users/paulkhomich/followers","following_url":"https://api.github.com/users/paulkhomich/following{/other_user}","gists_url":"https://api.github.com/users/paulkhomich/gists{/gist_id}","starred_url":"https://api.github.com/users/paulkhomich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulkhomich/subscriptions","organizations_url":"https://api.github.com/users/paulkhomich/orgs","repos_url":"https://api.github.com/users/paulkhomich/repos","events_url":"https://api.github.com/users/paulkhomich/events{/privacy}","received_events_url":"https://api.github.com/users/paulkhomich/received_events","type":"User","site_admin":false},"body":"Пока только реализовал limit, остальное в  ближайшие дни","created_at":"2015-10-20T10:18:21Z","updated_at":"2015-10-29T08:16:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"704df39431c6200cb9a1419806d49aa4af8ceb90","assignee":{"login":"Zhigalov","id":1654243,"avatar_url":"https://avatars.githubusercontent.com/u/1654243?v=3","gravatar_id":"","url":"https://api.github.com/users/Zhigalov","html_url":"https://github.com/Zhigalov","followers_url":"https://api.github.com/users/Zhigalov/followers","following_url":"https://api.github.com/users/Zhigalov/following{/other_user}","gists_url":"https://api.github.com/users/Zhigalov/gists{/gist_id}","starred_url":"https://api.github.com/users/Zhigalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zhigalov/subscriptions","organizations_url":"https://api.github.com/users/Zhigalov/orgs","repos_url":"https://api.github.com/users/Zhigalov/repos","events_url":"https://api.github.com/users/Zhigalov/events{/privacy}","received_events_url":"https://api.github.com/users/Zhigalov/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/pulls/63/commits","review_comments_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/pulls/63/comments","review_comment_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/issues/63/comments","statuses_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/statuses/1e73054425cc6ca3b7b54152b6b1c1b2b8484809","head":{"label":"paulkhomich:master","ref":"master","sha":"1e73054425cc6ca3b7b54152b6b1c1b2b8484809","user":{"login":"paulkhomich","id":14900963,"avatar_url":"https://avatars.githubusercontent.com/u/14900963?v=3","gravatar_id":"","url":"https://api.github.com/users/paulkhomich","html_url":"https://github.com/paulkhomich","followers_url":"https://api.github.com/users/paulkhomich/followers","following_url":"https://api.github.com/users/paulkhomich/following{/other_user}","gists_url":"https://api.github.com/users/paulkhomich/gists{/gist_id}","starred_url":"https://api.github.com/users/paulkhomich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulkhomich/subscriptions","organizations_url":"https://api.github.com/users/paulkhomich/orgs","repos_url":"https://api.github.com/users/paulkhomich/repos","events_url":"https://api.github.com/users/paulkhomich/events{/privacy}","received_events_url":"https://api.github.com/users/paulkhomich/received_events","type":"User","site_admin":false},"repo":{"id":44598270,"name":"javascript-tasks-3","full_name":"paulkhomich/javascript-tasks-3","owner":{"login":"paulkhomich","id":14900963,"avatar_url":"https://avatars.githubusercontent.com/u/14900963?v=3","gravatar_id":"","url":"https://api.github.com/users/paulkhomich","html_url":"https://github.com/paulkhomich","followers_url":"https://api.github.com/users/paulkhomich/followers","following_url":"https://api.github.com/users/paulkhomich/following{/other_user}","gists_url":"https://api.github.com/users/paulkhomich/gists{/gist_id}","starred_url":"https://api.github.com/users/paulkhomich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulkhomich/subscriptions","organizations_url":"https://api.github.com/users/paulkhomich/orgs","repos_url":"https://api.github.com/users/paulkhomich/repos","events_url":"https://api.github.com/users/paulkhomich/events{/privacy}","received_events_url":"https://api.github.com/users/paulkhomich/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/paulkhomich/javascript-tasks-3","description":"Задача к лекции «Функции в Javascript» – «Картофельная вечеринка»","fork":true,"url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3","forks_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/forks","keys_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/teams","hooks_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/hooks","issue_events_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/issues/events{/number}","events_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/events","assignees_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/assignees{/user}","branches_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/branches{/branch}","tags_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/tags","blobs_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/git/refs{/sha}","trees_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/statuses/{sha}","languages_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/languages","stargazers_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/stargazers","contributors_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/contributors","subscribers_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/subscribers","subscription_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/subscription","commits_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/commits{/sha}","git_commits_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/git/commits{/sha}","comments_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/comments{/number}","issue_comment_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/issues/comments{/number}","contents_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/contents/{+path}","compare_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/merges","archive_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/downloads","issues_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/issues{/number}","pulls_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/pulls{/number}","milestones_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/milestones{/number}","notifications_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/labels{/name}","releases_url":"https://api.github.com/repos/paulkhomich/javascript-tasks-3/releases{/id}","created_at":"2015-10-20T10:14:23Z","updated_at":"2015-10-20T10:14:24Z","pushed_at":"2015-10-25T11:59:31Z","git_url":"git://github.com/paulkhomich/javascript-tasks-3.git","ssh_url":"git@github.com:paulkhomich/javascript-tasks-3.git","clone_url":"https://github.com/paulkhomich/javascript-tasks-3.git","svn_url":"https://github.com/paulkhomich/javascript-tasks-3","homepage":"","size":101,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"urfu-2015:master","ref":"master","sha":"758f14fb6b73fe2ea3682a3cb7794dab5259d0f0","user":{"login":"urfu-2015","id":14800971,"avatar_url":"https://avatars.githubusercontent.com/u/14800971?v=3","gravatar_id":"","url":"https://api.github.com/users/urfu-2015","html_url":"https://github.com/urfu-2015","followers_url":"https://api.github.com/users/urfu-2015/followers","following_url":"https://api.github.com/users/urfu-2015/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2015/subscriptions","organizations_url":"https://api.github.com/users/urfu-2015/orgs","repos_url":"https://api.github.com/users/urfu-2015/repos","events_url":"https://api.github.com/users/urfu-2015/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2015/received_events","type":"Organization","site_admin":false},"repo":{"id":44174808,"name":"javascript-tasks-3","full_name":"urfu-2015/javascript-tasks-3","owner":{"login":"urfu-2015","id":14800971,"avatar_url":"https://avatars.githubusercontent.com/u/14800971?v=3","gravatar_id":"","url":"https://api.github.com/users/urfu-2015","html_url":"https://github.com/urfu-2015","followers_url":"https://api.github.com/users/urfu-2015/followers","following_url":"https://api.github.com/users/urfu-2015/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2015/subscriptions","organizations_url":"https://api.github.com/users/urfu-2015/orgs","repos_url":"https://api.github.com/users/urfu-2015/repos","events_url":"https://api.github.com/users/urfu-2015/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2015/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/urfu-2015/javascript-tasks-3","description":"Задача к лекции «Функции в Javascript» – «Картофельная вечеринка»","fork":false,"url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3","forks_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/forks","keys_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/teams","hooks_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/hooks","issue_events_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/issues/events{/number}","events_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/events","assignees_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/assignees{/user}","branches_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/branches{/branch}","tags_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/tags","blobs_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/git/refs{/sha}","trees_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/statuses/{sha}","languages_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/languages","stargazers_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/stargazers","contributors_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/contributors","subscribers_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/subscribers","subscription_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/subscription","commits_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/commits{/sha}","git_commits_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/git/commits{/sha}","comments_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/comments{/number}","issue_comment_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/issues/comments{/number}","contents_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/contents/{+path}","compare_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/merges","archive_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/downloads","issues_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/issues{/number}","pulls_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/pulls{/number}","milestones_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/milestones{/number}","notifications_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/labels{/name}","releases_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/releases{/id}","created_at":"2015-10-13T12:30:10Z","updated_at":"2015-10-24T17:16:36Z","pushed_at":"2015-10-27T18:30:02Z","git_url":"git://github.com/urfu-2015/javascript-tasks-3.git","ssh_url":"git@github.com:urfu-2015/javascript-tasks-3.git","clone_url":"https://github.com/urfu-2015/javascript-tasks-3.git","svn_url":"https://github.com/urfu-2015/javascript-tasks-3","homepage":"","size":1607,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":79,"mirror_url":null,"open_issues_count":31,"forks":79,"open_issues":31,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/pulls/63"},"html":{"href":"https://github.com/urfu-2015/javascript-tasks-3/pull/63"},"issue":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/issues/63"},"comments":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/issues/63/comments"},"review_comments":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/pulls/63/comments"},"review_comment":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/pulls/63/commits"},"statuses":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-3/statuses/1e73054425cc6ca3b7b54152b6b1c1b2b8484809"}}}}