{"action":"created","comment":{"url":"https://api.github.com/repos/sterallion/otus/pulls/comments/172013725","pull_request_review_id":100971918,"id":172013725,"diff_hunk":"@@ -0,0 +1,52 @@\n+/**\n+ * Функция суммирующая значения\n+ *\n+ * @example\n+ * sum(2)(3)(5)() // 10\n+ * sum()          // 10\n+ *\n+ * @return {Number} Сумма чисел\n+ */\n+const sum = (() => {\n+\tlet total = 0;\n+\n+\treturn (firstNumber) => {\n+\t\tif(firstNumber === undefined) {","path":"homework-1/common.js","position":14,"original_position":14,"commit_id":"676a8bdbc389526a20ba4216e8bb7f12c454a344","original_commit_id":"676a8bdbc389526a20ba4216e8bb7f12c454a344","user":{"login":"korzio","id":1259644,"avatar_url":"https://avatars2.githubusercontent.com/u/1259644?v=4","gravatar_id":"","url":"https://api.github.com/users/korzio","html_url":"https://github.com/korzio","followers_url":"https://api.github.com/users/korzio/followers","following_url":"https://api.github.com/users/korzio/following{/other_user}","gists_url":"https://api.github.com/users/korzio/gists{/gist_id}","starred_url":"https://api.github.com/users/korzio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/korzio/subscriptions","organizations_url":"https://api.github.com/users/korzio/orgs","repos_url":"https://api.github.com/users/korzio/repos","events_url":"https://api.github.com/users/korzio/events{/privacy}","received_events_url":"https://api.github.com/users/korzio/received_events","type":"User","site_admin":false},"body":"Означает ли это, что аргументы не переданы в функцию?","created_at":"2018-03-03T10:56:48Z","updated_at":"2018-03-03T10:56:49Z","html_url":"https://github.com/sterallion/otus/pull/1#discussion_r172013725","pull_request_url":"https://api.github.com/repos/sterallion/otus/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/sterallion/otus/pulls/comments/172013725"},"html":{"href":"https://github.com/sterallion/otus/pull/1#discussion_r172013725"},"pull_request":{"href":"https://api.github.com/repos/sterallion/otus/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/sterallion/otus/pulls/1","id":172513890,"html_url":"https://github.com/sterallion/otus/pull/1","diff_url":"https://github.com/sterallion/otus/pull/1.diff","patch_url":"https://github.com/sterallion/otus/pull/1.patch","issue_url":"https://api.github.com/repos/sterallion/otus/issues/1","number":1,"state":"open","locked":false,"title":"added sum and objectCreate","user":{"login":"sterallion","id":36900371,"avatar_url":"https://avatars0.githubusercontent.com/u/36900371?v=4","gravatar_id":"","url":"https://api.github.com/users/sterallion","html_url":"https://github.com/sterallion","followers_url":"https://api.github.com/users/sterallion/followers","following_url":"https://api.github.com/users/sterallion/following{/other_user}","gists_url":"https://api.github.com/users/sterallion/gists{/gist_id}","starred_url":"https://api.github.com/users/sterallion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sterallion/subscriptions","organizations_url":"https://api.github.com/users/sterallion/orgs","repos_url":"https://api.github.com/users/sterallion/repos","events_url":"https://api.github.com/users/sterallion/events{/privacy}","received_events_url":"https://api.github.com/users/sterallion/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-02T14:19:28Z","updated_at":"2018-03-03T10:56:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"89367e0b3f3bb9a2c31a0952eed62a8559418efc","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/sterallion/otus/pulls/1/commits","review_comments_url":"https://api.github.com/repos/sterallion/otus/pulls/1/comments","review_comment_url":"https://api.github.com/repos/sterallion/otus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sterallion/otus/issues/1/comments","statuses_url":"https://api.github.com/repos/sterallion/otus/statuses/676a8bdbc389526a20ba4216e8bb7f12c454a344","head":{"label":"sterallion:homework-1","ref":"homework-1","sha":"676a8bdbc389526a20ba4216e8bb7f12c454a344","user":{"login":"sterallion","id":36900371,"avatar_url":"https://avatars0.githubusercontent.com/u/36900371?v=4","gravatar_id":"","url":"https://api.github.com/users/sterallion","html_url":"https://github.com/sterallion","followers_url":"https://api.github.com/users/sterallion/followers","following_url":"https://api.github.com/users/sterallion/following{/other_user}","gists_url":"https://api.github.com/users/sterallion/gists{/gist_id}","starred_url":"https://api.github.com/users/sterallion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sterallion/subscriptions","organizations_url":"https://api.github.com/users/sterallion/orgs","repos_url":"https://api.github.com/users/sterallion/repos","events_url":"https://api.github.com/users/sterallion/events{/privacy}","received_events_url":"https://api.github.com/users/sterallion/received_events","type":"User","site_admin":false},"repo":{"id":123183580,"name":"otus","full_name":"sterallion/otus","owner":{"login":"sterallion","id":36900371,"avatar_url":"https://avatars0.githubusercontent.com/u/36900371?v=4","gravatar_id":"","url":"https://api.github.com/users/sterallion","html_url":"https://github.com/sterallion","followers_url":"https://api.github.com/users/sterallion/followers","following_url":"https://api.github.com/users/sterallion/following{/other_user}","gists_url":"https://api.github.com/users/sterallion/gists{/gist_id}","starred_url":"https://api.github.com/users/sterallion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sterallion/subscriptions","organizations_url":"https://api.github.com/users/sterallion/orgs","repos_url":"https://api.github.com/users/sterallion/repos","events_url":"https://api.github.com/users/sterallion/events{/privacy}","received_events_url":"https://api.github.com/users/sterallion/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sterallion/otus","description":null,"fork":false,"url":"https://api.github.com/repos/sterallion/otus","forks_url":"https://api.github.com/repos/sterallion/otus/forks","keys_url":"https://api.github.com/repos/sterallion/otus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sterallion/otus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sterallion/otus/teams","hooks_url":"https://api.github.com/repos/sterallion/otus/hooks","issue_events_url":"https://api.github.com/repos/sterallion/otus/issues/events{/number}","events_url":"https://api.github.com/repos/sterallion/otus/events","assignees_url":"https://api.github.com/repos/sterallion/otus/assignees{/user}","branches_url":"https://api.github.com/repos/sterallion/otus/branches{/branch}","tags_url":"https://api.github.com/repos/sterallion/otus/tags","blobs_url":"https://api.github.com/repos/sterallion/otus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sterallion/otus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sterallion/otus/git/refs{/sha}","trees_url":"https://api.github.com/repos/sterallion/otus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sterallion/otus/statuses/{sha}","languages_url":"https://api.github.com/repos/sterallion/otus/languages","stargazers_url":"https://api.github.com/repos/sterallion/otus/stargazers","contributors_url":"https://api.github.com/repos/sterallion/otus/contributors","subscribers_url":"https://api.github.com/repos/sterallion/otus/subscribers","subscription_url":"https://api.github.com/repos/sterallion/otus/subscription","commits_url":"https://api.github.com/repos/sterallion/otus/commits{/sha}","git_commits_url":"https://api.github.com/repos/sterallion/otus/git/commits{/sha}","comments_url":"https://api.github.com/repos/sterallion/otus/comments{/number}","issue_comment_url":"https://api.github.com/repos/sterallion/otus/issues/comments{/number}","contents_url":"https://api.github.com/repos/sterallion/otus/contents/{+path}","compare_url":"https://api.github.com/repos/sterallion/otus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sterallion/otus/merges","archive_url":"https://api.github.com/repos/sterallion/otus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sterallion/otus/downloads","issues_url":"https://api.github.com/repos/sterallion/otus/issues{/number}","pulls_url":"https://api.github.com/repos/sterallion/otus/pulls{/number}","milestones_url":"https://api.github.com/repos/sterallion/otus/milestones{/number}","notifications_url":"https://api.github.com/repos/sterallion/otus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sterallion/otus/labels{/name}","releases_url":"https://api.github.com/repos/sterallion/otus/releases{/id}","deployments_url":"https://api.github.com/repos/sterallion/otus/deployments","created_at":"2018-02-27T20:21:46Z","updated_at":"2018-02-27T20:21:46Z","pushed_at":"2018-03-02T14:27:10Z","git_url":"git://github.com/sterallion/otus.git","ssh_url":"git@github.com:sterallion/otus.git","clone_url":"https://github.com/sterallion/otus.git","svn_url":"https://github.com/sterallion/otus","homepage":null,"size":1,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"sterallion:master","ref":"master","sha":"38555a6823056a7ddfd309dc5edc1a166f82a69e","user":{"login":"sterallion","id":36900371,"avatar_url":"https://avatars0.githubusercontent.com/u/36900371?v=4","gravatar_id":"","url":"https://api.github.com/users/sterallion","html_url":"https://github.com/sterallion","followers_url":"https://api.github.com/users/sterallion/followers","following_url":"https://api.github.com/users/sterallion/following{/other_user}","gists_url":"https://api.github.com/users/sterallion/gists{/gist_id}","starred_url":"https://api.github.com/users/sterallion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sterallion/subscriptions","organizations_url":"https://api.github.com/users/sterallion/orgs","repos_url":"https://api.github.com/users/sterallion/repos","events_url":"https://api.github.com/users/sterallion/events{/privacy}","received_events_url":"https://api.github.com/users/sterallion/received_events","type":"User","site_admin":false},"repo":{"id":123183580,"name":"otus","full_name":"sterallion/otus","owner":{"login":"sterallion","id":36900371,"avatar_url":"https://avatars0.githubusercontent.com/u/36900371?v=4","gravatar_id":"","url":"https://api.github.com/users/sterallion","html_url":"https://github.com/sterallion","followers_url":"https://api.github.com/users/sterallion/followers","following_url":"https://api.github.com/users/sterallion/following{/other_user}","gists_url":"https://api.github.com/users/sterallion/gists{/gist_id}","starred_url":"https://api.github.com/users/sterallion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sterallion/subscriptions","organizations_url":"https://api.github.com/users/sterallion/orgs","repos_url":"https://api.github.com/users/sterallion/repos","events_url":"https://api.github.com/users/sterallion/events{/privacy}","received_events_url":"https://api.github.com/users/sterallion/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sterallion/otus","description":null,"fork":false,"url":"https://api.github.com/repos/sterallion/otus","forks_url":"https://api.github.com/repos/sterallion/otus/forks","keys_url":"https://api.github.com/repos/sterallion/otus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sterallion/otus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sterallion/otus/teams","hooks_url":"https://api.github.com/repos/sterallion/otus/hooks","issue_events_url":"https://api.github.com/repos/sterallion/otus/issues/events{/number}","events_url":"https://api.github.com/repos/sterallion/otus/events","assignees_url":"https://api.github.com/repos/sterallion/otus/assignees{/user}","branches_url":"https://api.github.com/repos/sterallion/otus/branches{/branch}","tags_url":"https://api.github.com/repos/sterallion/otus/tags","blobs_url":"https://api.github.com/repos/sterallion/otus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sterallion/otus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sterallion/otus/git/refs{/sha}","trees_url":"https://api.github.com/repos/sterallion/otus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sterallion/otus/statuses/{sha}","languages_url":"https://api.github.com/repos/sterallion/otus/languages","stargazers_url":"https://api.github.com/repos/sterallion/otus/stargazers","contributors_url":"https://api.github.com/repos/sterallion/otus/contributors","subscribers_url":"https://api.github.com/repos/sterallion/otus/subscribers","subscription_url":"https://api.github.com/repos/sterallion/otus/subscription","commits_url":"https://api.github.com/repos/sterallion/otus/commits{/sha}","git_commits_url":"https://api.github.com/repos/sterallion/otus/git/commits{/sha}","comments_url":"https://api.github.com/repos/sterallion/otus/comments{/number}","issue_comment_url":"https://api.github.com/repos/sterallion/otus/issues/comments{/number}","contents_url":"https://api.github.com/repos/sterallion/otus/contents/{+path}","compare_url":"https://api.github.com/repos/sterallion/otus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sterallion/otus/merges","archive_url":"https://api.github.com/repos/sterallion/otus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sterallion/otus/downloads","issues_url":"https://api.github.com/repos/sterallion/otus/issues{/number}","pulls_url":"https://api.github.com/repos/sterallion/otus/pulls{/number}","milestones_url":"https://api.github.com/repos/sterallion/otus/milestones{/number}","notifications_url":"https://api.github.com/repos/sterallion/otus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sterallion/otus/labels{/name}","releases_url":"https://api.github.com/repos/sterallion/otus/releases{/id}","deployments_url":"https://api.github.com/repos/sterallion/otus/deployments","created_at":"2018-02-27T20:21:46Z","updated_at":"2018-02-27T20:21:46Z","pushed_at":"2018-03-02T14:27:10Z","git_url":"git://github.com/sterallion/otus.git","ssh_url":"git@github.com:sterallion/otus.git","clone_url":"https://github.com/sterallion/otus.git","svn_url":"https://github.com/sterallion/otus","homepage":null,"size":1,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sterallion/otus/pulls/1"},"html":{"href":"https://github.com/sterallion/otus/pull/1"},"issue":{"href":"https://api.github.com/repos/sterallion/otus/issues/1"},"comments":{"href":"https://api.github.com/repos/sterallion/otus/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/sterallion/otus/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/sterallion/otus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sterallion/otus/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/sterallion/otus/statuses/676a8bdbc389526a20ba4216e8bb7f12c454a344"}},"author_association":"OWNER"}}
{"actor":{"display_login":"korzio"}}