{"action":"created","comment":{"url":"https://api.github.com/repos/urfu-2016/javascript-task-8/pulls/comments/90900330","pull_request_review_id":11413832,"id":90900330,"diff_hunk":"@@ -1,49 +1,113 @@\n 'use strict';\n \n-/**\n+/*\n  * Сделано задание на звездочку\n  * Реализованы методы mapLimit и filterLimit\n  */\n-exports.isStar = true;\n+exports.isStar = false;\n \n-/**\n+/*\n  * Последовательное выполнение операций\n  * @param {Function[]} operations – функции для выполнения\n  * @param {Function} callback\n  */\n exports.serial = function (operations, callback) {\n-    console.info(operations, callback);\n+    if (!operations || !operations.length) {\n+        callback(null);\n+\n+        return;\n+    }\n+    var operationIndex = 1;\n+    function nextFunction(error, data) {\n+        if (!error && operations[operationIndex]) {\n+            operations[operationIndex++](data, nextFunction);\n+        } else {\n+            callback(error, data);\n+        }\n+    }\n+    operations[0](nextFunction);\n };\n \n-/**\n+/*\n  * Параллельная обработка элементов\n  * @param {Array} items – элементы для итерации\n  * @param {Function} operation – функция для обработки элементов\n  * @param {Function} callback\n  */\n exports.map = function (items, operation, callback) {\n-    console.info(items, operation, callback);\n+    if (!items || !items.length) {\n+        callback(null, []);\n+\n+        return;\n+    }\n+    var result = [];\n+    var countExited = 0;\n+    var errorFlag = false;\n+    items.some(function (item, itemIndex) {","path":"flow.js","position":52,"original_position":52,"commit_id":"e642008677619a8a53c5be5f742315829327551c","original_commit_id":"e642008677619a8a53c5be5f742315829327551c","user":{"login":"hrundik","id":536445,"avatar_url":"https://avatars.githubusercontent.com/u/536445?v=3","gravatar_id":"","url":"https://api.github.com/users/hrundik","html_url":"https://github.com/hrundik","followers_url":"https://api.github.com/users/hrundik/followers","following_url":"https://api.github.com/users/hrundik/following{/other_user}","gists_url":"https://api.github.com/users/hrundik/gists{/gist_id}","starred_url":"https://api.github.com/users/hrundik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hrundik/subscriptions","organizations_url":"https://api.github.com/users/hrundik/orgs","repos_url":"https://api.github.com/users/hrundik/repos","events_url":"https://api.github.com/users/hrundik/events{/privacy}","received_events_url":"https://api.github.com/users/hrundik/received_events","type":"User","site_admin":false},"body":"А почему `some`? По условию задачи запускать надо параллельно. У вас же есть расчёт на то, что `operation` какую-то часть своей работы выполняет синхронно, и `errorFlag` может поменяться синхронно.","created_at":"2016-12-05T16:26:59Z","updated_at":"2016-12-05T16:26:59Z","html_url":"https://github.com/urfu-2016/javascript-task-8/pull/18#discussion_r90900330","pull_request_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/urfu-2016/javascript-task-8/pulls/comments/90900330"},"html":{"href":"https://github.com/urfu-2016/javascript-task-8/pull/18#discussion_r90900330"},"pull_request":{"href":"https://api.github.com/repos/urfu-2016/javascript-task-8/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/urfu-2016/javascript-task-8/pulls/18","id":95945515,"html_url":"https://github.com/urfu-2016/javascript-task-8/pull/18","diff_url":"https://github.com/urfu-2016/javascript-task-8/pull/18.diff","patch_url":"https://github.com/urfu-2016/javascript-task-8/pull/18.patch","issue_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/issues/18","number":18,"state":"open","locked":false,"title":"Седова Ирина","user":{"login":"IrinaSed","id":20294935,"avatar_url":"https://avatars.githubusercontent.com/u/20294935?v=3","gravatar_id":"","url":"https://api.github.com/users/IrinaSed","html_url":"https://github.com/IrinaSed","followers_url":"https://api.github.com/users/IrinaSed/followers","following_url":"https://api.github.com/users/IrinaSed/following{/other_user}","gists_url":"https://api.github.com/users/IrinaSed/gists{/gist_id}","starred_url":"https://api.github.com/users/IrinaSed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IrinaSed/subscriptions","organizations_url":"https://api.github.com/users/IrinaSed/orgs","repos_url":"https://api.github.com/users/IrinaSed/repos","events_url":"https://api.github.com/users/IrinaSed/events{/privacy}","received_events_url":"https://api.github.com/users/IrinaSed/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-30T18:18:41Z","updated_at":"2016-12-05T16:31:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"60843ed6d6192a8d30a098b1a7e28c24a8588201","assignee":{"login":"hrundik","id":536445,"avatar_url":"https://avatars.githubusercontent.com/u/536445?v=3","gravatar_id":"","url":"https://api.github.com/users/hrundik","html_url":"https://github.com/hrundik","followers_url":"https://api.github.com/users/hrundik/followers","following_url":"https://api.github.com/users/hrundik/following{/other_user}","gists_url":"https://api.github.com/users/hrundik/gists{/gist_id}","starred_url":"https://api.github.com/users/hrundik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hrundik/subscriptions","organizations_url":"https://api.github.com/users/hrundik/orgs","repos_url":"https://api.github.com/users/hrundik/repos","events_url":"https://api.github.com/users/hrundik/events{/privacy}","received_events_url":"https://api.github.com/users/hrundik/received_events","type":"User","site_admin":false},"assignees":[{"login":"hrundik","id":536445,"avatar_url":"https://avatars.githubusercontent.com/u/536445?v=3","gravatar_id":"","url":"https://api.github.com/users/hrundik","html_url":"https://github.com/hrundik","followers_url":"https://api.github.com/users/hrundik/followers","following_url":"https://api.github.com/users/hrundik/following{/other_user}","gists_url":"https://api.github.com/users/hrundik/gists{/gist_id}","starred_url":"https://api.github.com/users/hrundik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hrundik/subscriptions","organizations_url":"https://api.github.com/users/hrundik/orgs","repos_url":"https://api.github.com/users/hrundik/repos","events_url":"https://api.github.com/users/hrundik/events{/privacy}","received_events_url":"https://api.github.com/users/hrundik/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/pulls/18/commits","review_comments_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/pulls/18/comments","review_comment_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/pulls/comments{/number}","comments_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/issues/18/comments","statuses_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/statuses/e642008677619a8a53c5be5f742315829327551c","head":{"label":"IrinaSed:master","ref":"master","sha":"e642008677619a8a53c5be5f742315829327551c","user":{"login":"IrinaSed","id":20294935,"avatar_url":"https://avatars.githubusercontent.com/u/20294935?v=3","gravatar_id":"","url":"https://api.github.com/users/IrinaSed","html_url":"https://github.com/IrinaSed","followers_url":"https://api.github.com/users/IrinaSed/followers","following_url":"https://api.github.com/users/IrinaSed/following{/other_user}","gists_url":"https://api.github.com/users/IrinaSed/gists{/gist_id}","starred_url":"https://api.github.com/users/IrinaSed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IrinaSed/subscriptions","organizations_url":"https://api.github.com/users/IrinaSed/orgs","repos_url":"https://api.github.com/users/IrinaSed/repos","events_url":"https://api.github.com/users/IrinaSed/events{/privacy}","received_events_url":"https://api.github.com/users/IrinaSed/received_events","type":"User","site_admin":false},"repo":{"id":74703045,"name":"javascript-task-8","full_name":"IrinaSed/javascript-task-8","owner":{"login":"IrinaSed","id":20294935,"avatar_url":"https://avatars.githubusercontent.com/u/20294935?v=3","gravatar_id":"","url":"https://api.github.com/users/IrinaSed","html_url":"https://github.com/IrinaSed","followers_url":"https://api.github.com/users/IrinaSed/followers","following_url":"https://api.github.com/users/IrinaSed/following{/other_user}","gists_url":"https://api.github.com/users/IrinaSed/gists{/gist_id}","starred_url":"https://api.github.com/users/IrinaSed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IrinaSed/subscriptions","organizations_url":"https://api.github.com/users/IrinaSed/orgs","repos_url":"https://api.github.com/users/IrinaSed/repos","events_url":"https://api.github.com/users/IrinaSed/events{/privacy}","received_events_url":"https://api.github.com/users/IrinaSed/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/IrinaSed/javascript-task-8","description":"Задача «Котофайлы»","fork":true,"url":"https://api.github.com/repos/IrinaSed/javascript-task-8","forks_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/forks","keys_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/teams","hooks_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/hooks","issue_events_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/issues/events{/number}","events_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/events","assignees_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/assignees{/user}","branches_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/branches{/branch}","tags_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/tags","blobs_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/git/refs{/sha}","trees_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/statuses/{sha}","languages_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/languages","stargazers_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/stargazers","contributors_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/contributors","subscribers_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/subscribers","subscription_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/subscription","commits_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/commits{/sha}","git_commits_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/git/commits{/sha}","comments_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/comments{/number}","issue_comment_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/issues/comments{/number}","contents_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/contents/{+path}","compare_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/merges","archive_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/downloads","issues_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/issues{/number}","pulls_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/pulls{/number}","milestones_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/milestones{/number}","notifications_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/labels{/name}","releases_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/releases{/id}","deployments_url":"https://api.github.com/repos/IrinaSed/javascript-task-8/deployments","created_at":"2016-11-24T20:25:34Z","updated_at":"2016-11-24T20:25:35Z","pushed_at":"2016-12-02T15:30:26Z","git_url":"git://github.com/IrinaSed/javascript-task-8.git","ssh_url":"git@github.com:IrinaSed/javascript-task-8.git","clone_url":"https://github.com/IrinaSed/javascript-task-8.git","svn_url":"https://github.com/IrinaSed/javascript-task-8","homepage":null,"size":10,"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-2016:master","ref":"master","sha":"587f65b4b65667cfbe838356e8ff28d03564af26","user":{"login":"urfu-2016","id":22170529,"avatar_url":"https://avatars.githubusercontent.com/u/22170529?v=3","gravatar_id":"","url":"https://api.github.com/users/urfu-2016","html_url":"https://github.com/urfu-2016","followers_url":"https://api.github.com/users/urfu-2016/followers","following_url":"https://api.github.com/users/urfu-2016/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2016/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2016/subscriptions","organizations_url":"https://api.github.com/users/urfu-2016/orgs","repos_url":"https://api.github.com/users/urfu-2016/repos","events_url":"https://api.github.com/users/urfu-2016/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2016/received_events","type":"Organization","site_admin":false},"repo":{"id":74670896,"name":"javascript-task-8","full_name":"urfu-2016/javascript-task-8","owner":{"login":"urfu-2016","id":22170529,"avatar_url":"https://avatars.githubusercontent.com/u/22170529?v=3","gravatar_id":"","url":"https://api.github.com/users/urfu-2016","html_url":"https://github.com/urfu-2016","followers_url":"https://api.github.com/users/urfu-2016/followers","following_url":"https://api.github.com/users/urfu-2016/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2016/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2016/subscriptions","organizations_url":"https://api.github.com/users/urfu-2016/orgs","repos_url":"https://api.github.com/users/urfu-2016/repos","events_url":"https://api.github.com/users/urfu-2016/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2016/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/urfu-2016/javascript-task-8","description":"Задача «Котофайлы»","fork":false,"url":"https://api.github.com/repos/urfu-2016/javascript-task-8","forks_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/forks","keys_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/keys{/key_id}","collaborators_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/teams","hooks_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/hooks","issue_events_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/issues/events{/number}","events_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/events","assignees_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/assignees{/user}","branches_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/branches{/branch}","tags_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/tags","blobs_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/git/refs{/sha}","trees_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/git/trees{/sha}","statuses_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/statuses/{sha}","languages_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/languages","stargazers_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/stargazers","contributors_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/contributors","subscribers_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/subscribers","subscription_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/subscription","commits_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/commits{/sha}","git_commits_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/git/commits{/sha}","comments_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/comments{/number}","issue_comment_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/issues/comments{/number}","contents_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/contents/{+path}","compare_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/compare/{base}...{head}","merges_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/merges","archive_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/downloads","issues_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/issues{/number}","pulls_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/pulls{/number}","milestones_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/milestones{/number}","notifications_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/labels{/name}","releases_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/releases{/id}","deployments_url":"https://api.github.com/repos/urfu-2016/javascript-task-8/deployments","created_at":"2016-11-24T12:23:21Z","updated_at":"2016-11-27T16:21:26Z","pushed_at":"2016-12-05T13:33:54Z","git_url":"git://github.com/urfu-2016/javascript-task-8.git","ssh_url":"git@github.com:urfu-2016/javascript-task-8.git","clone_url":"https://github.com/urfu-2016/javascript-task-8.git","svn_url":"https://github.com/urfu-2016/javascript-task-8","homepage":null,"size":5,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":36,"mirror_url":null,"open_issues_count":16,"forks":36,"open_issues":16,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/urfu-2016/javascript-task-8/pulls/18"},"html":{"href":"https://github.com/urfu-2016/javascript-task-8/pull/18"},"issue":{"href":"https://api.github.com/repos/urfu-2016/javascript-task-8/issues/18"},"comments":{"href":"https://api.github.com/repos/urfu-2016/javascript-task-8/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/urfu-2016/javascript-task-8/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/urfu-2016/javascript-task-8/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/urfu-2016/javascript-task-8/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/urfu-2016/javascript-task-8/statuses/e642008677619a8a53c5be5f742315829327551c"}}}}
{"actor":{"display_login":"hrundik"}}