{"action":"created","comment":{"url":"https://api.github.com/repos/yakato/codility-js/pulls/comments/93630153","pull_request_review_id":14161851,"id":93630153,"diff_hunk":"@@ -0,0 +1,29 @@\n+function solution(array) {\n+  if(array.length === 0) { return 0 };\n+  let avg2 = Infinity;\n+  let avg3 = Infinity;\n+  let minAvg = Infinity;\n+  let minIndex = Infinity;\n+\n+  array.forEach((element, index) => {\n+    let tmpAvg = Infinity;","path":"lesson-5/MinAvgTwoSlice/solution.js","position":9,"original_position":9,"commit_id":"d2938acdc2f3c5904eda218e57641c8a37620506","original_commit_id":"d2938acdc2f3c5904eda218e57641c8a37620506","user":{"login":"imanel","id":36869,"avatar_url":"https://avatars.githubusercontent.com/u/36869?v=3","gravatar_id":"","url":"https://api.github.com/users/imanel","html_url":"https://github.com/imanel","followers_url":"https://api.github.com/users/imanel/followers","following_url":"https://api.github.com/users/imanel/following{/other_user}","gists_url":"https://api.github.com/users/imanel/gists{/gist_id}","starred_url":"https://api.github.com/users/imanel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imanel/subscriptions","organizations_url":"https://api.github.com/users/imanel/orgs","repos_url":"https://api.github.com/users/imanel/repos","events_url":"https://api.github.com/users/imanel/events{/privacy}","received_events_url":"https://api.github.com/users/imanel/received_events","type":"User","site_admin":false},"body":"No reason of setting default, as it will be overwritten in following lines. Just leave it undefined here.","created_at":"2016-12-22T14:18:09Z","updated_at":"2016-12-22T14:18:09Z","html_url":"https://github.com/yakato/codility-js/pull/13#discussion_r93630153","pull_request_url":"https://api.github.com/repos/yakato/codility-js/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/yakato/codility-js/pulls/comments/93630153"},"html":{"href":"https://github.com/yakato/codility-js/pull/13#discussion_r93630153"},"pull_request":{"href":"https://api.github.com/repos/yakato/codility-js/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/yakato/codility-js/pulls/13","id":99109371,"html_url":"https://github.com/yakato/codility-js/pull/13","diff_url":"https://github.com/yakato/codility-js/pull/13.diff","patch_url":"https://github.com/yakato/codility-js/pull/13.patch","issue_url":"https://api.github.com/repos/yakato/codility-js/issues/13","number":13,"state":"open","locked":false,"title":"MinAvgTwoSlice","user":{"login":"yakato","id":16289193,"avatar_url":"https://avatars.githubusercontent.com/u/16289193?v=3","gravatar_id":"","url":"https://api.github.com/users/yakato","html_url":"https://github.com/yakato","followers_url":"https://api.github.com/users/yakato/followers","following_url":"https://api.github.com/users/yakato/following{/other_user}","gists_url":"https://api.github.com/users/yakato/gists{/gist_id}","starred_url":"https://api.github.com/users/yakato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yakato/subscriptions","organizations_url":"https://api.github.com/users/yakato/orgs","repos_url":"https://api.github.com/users/yakato/repos","events_url":"https://api.github.com/users/yakato/events{/privacy}","received_events_url":"https://api.github.com/users/yakato/received_events","type":"User","site_admin":false},"body":"https://codility.com/demo/results/training5HPQ3R-MSA/","created_at":"2016-12-22T14:05:06Z","updated_at":"2016-12-22T14:18:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d1e8948e1ddc9ab53a084fdec83bbbd36dbddce2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/yakato/codility-js/pulls/13/commits","review_comments_url":"https://api.github.com/repos/yakato/codility-js/pulls/13/comments","review_comment_url":"https://api.github.com/repos/yakato/codility-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yakato/codility-js/issues/13/comments","statuses_url":"https://api.github.com/repos/yakato/codility-js/statuses/d2938acdc2f3c5904eda218e57641c8a37620506","head":{"label":"yakato:min-avg","ref":"min-avg","sha":"d2938acdc2f3c5904eda218e57641c8a37620506","user":{"login":"yakato","id":16289193,"avatar_url":"https://avatars.githubusercontent.com/u/16289193?v=3","gravatar_id":"","url":"https://api.github.com/users/yakato","html_url":"https://github.com/yakato","followers_url":"https://api.github.com/users/yakato/followers","following_url":"https://api.github.com/users/yakato/following{/other_user}","gists_url":"https://api.github.com/users/yakato/gists{/gist_id}","starred_url":"https://api.github.com/users/yakato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yakato/subscriptions","organizations_url":"https://api.github.com/users/yakato/orgs","repos_url":"https://api.github.com/users/yakato/repos","events_url":"https://api.github.com/users/yakato/events{/privacy}","received_events_url":"https://api.github.com/users/yakato/received_events","type":"User","site_admin":false},"repo":{"id":74017427,"name":"codility-js","full_name":"yakato/codility-js","owner":{"login":"yakato","id":16289193,"avatar_url":"https://avatars.githubusercontent.com/u/16289193?v=3","gravatar_id":"","url":"https://api.github.com/users/yakato","html_url":"https://github.com/yakato","followers_url":"https://api.github.com/users/yakato/followers","following_url":"https://api.github.com/users/yakato/following{/other_user}","gists_url":"https://api.github.com/users/yakato/gists{/gist_id}","starred_url":"https://api.github.com/users/yakato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yakato/subscriptions","organizations_url":"https://api.github.com/users/yakato/orgs","repos_url":"https://api.github.com/users/yakato/repos","events_url":"https://api.github.com/users/yakato/events{/privacy}","received_events_url":"https://api.github.com/users/yakato/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yakato/codility-js","description":null,"fork":false,"url":"https://api.github.com/repos/yakato/codility-js","forks_url":"https://api.github.com/repos/yakato/codility-js/forks","keys_url":"https://api.github.com/repos/yakato/codility-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yakato/codility-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yakato/codility-js/teams","hooks_url":"https://api.github.com/repos/yakato/codility-js/hooks","issue_events_url":"https://api.github.com/repos/yakato/codility-js/issues/events{/number}","events_url":"https://api.github.com/repos/yakato/codility-js/events","assignees_url":"https://api.github.com/repos/yakato/codility-js/assignees{/user}","branches_url":"https://api.github.com/repos/yakato/codility-js/branches{/branch}","tags_url":"https://api.github.com/repos/yakato/codility-js/tags","blobs_url":"https://api.github.com/repos/yakato/codility-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yakato/codility-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yakato/codility-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/yakato/codility-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yakato/codility-js/statuses/{sha}","languages_url":"https://api.github.com/repos/yakato/codility-js/languages","stargazers_url":"https://api.github.com/repos/yakato/codility-js/stargazers","contributors_url":"https://api.github.com/repos/yakato/codility-js/contributors","subscribers_url":"https://api.github.com/repos/yakato/codility-js/subscribers","subscription_url":"https://api.github.com/repos/yakato/codility-js/subscription","commits_url":"https://api.github.com/repos/yakato/codility-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/yakato/codility-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/yakato/codility-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/yakato/codility-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/yakato/codility-js/contents/{+path}","compare_url":"https://api.github.com/repos/yakato/codility-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yakato/codility-js/merges","archive_url":"https://api.github.com/repos/yakato/codility-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yakato/codility-js/downloads","issues_url":"https://api.github.com/repos/yakato/codility-js/issues{/number}","pulls_url":"https://api.github.com/repos/yakato/codility-js/pulls{/number}","milestones_url":"https://api.github.com/repos/yakato/codility-js/milestones{/number}","notifications_url":"https://api.github.com/repos/yakato/codility-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yakato/codility-js/labels{/name}","releases_url":"https://api.github.com/repos/yakato/codility-js/releases{/id}","deployments_url":"https://api.github.com/repos/yakato/codility-js/deployments","created_at":"2016-11-17T10:43:24Z","updated_at":"2016-11-17T13:49:43Z","pushed_at":"2016-12-22T14:05:07Z","git_url":"git://github.com/yakato/codility-js.git","ssh_url":"git@github.com:yakato/codility-js.git","clone_url":"https://github.com/yakato/codility-js.git","svn_url":"https://github.com/yakato/codility-js","homepage":null,"size":2101,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"yakato:master","ref":"master","sha":"32b7effa9546b090a6d90cf917c135c65be14400","user":{"login":"yakato","id":16289193,"avatar_url":"https://avatars.githubusercontent.com/u/16289193?v=3","gravatar_id":"","url":"https://api.github.com/users/yakato","html_url":"https://github.com/yakato","followers_url":"https://api.github.com/users/yakato/followers","following_url":"https://api.github.com/users/yakato/following{/other_user}","gists_url":"https://api.github.com/users/yakato/gists{/gist_id}","starred_url":"https://api.github.com/users/yakato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yakato/subscriptions","organizations_url":"https://api.github.com/users/yakato/orgs","repos_url":"https://api.github.com/users/yakato/repos","events_url":"https://api.github.com/users/yakato/events{/privacy}","received_events_url":"https://api.github.com/users/yakato/received_events","type":"User","site_admin":false},"repo":{"id":74017427,"name":"codility-js","full_name":"yakato/codility-js","owner":{"login":"yakato","id":16289193,"avatar_url":"https://avatars.githubusercontent.com/u/16289193?v=3","gravatar_id":"","url":"https://api.github.com/users/yakato","html_url":"https://github.com/yakato","followers_url":"https://api.github.com/users/yakato/followers","following_url":"https://api.github.com/users/yakato/following{/other_user}","gists_url":"https://api.github.com/users/yakato/gists{/gist_id}","starred_url":"https://api.github.com/users/yakato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yakato/subscriptions","organizations_url":"https://api.github.com/users/yakato/orgs","repos_url":"https://api.github.com/users/yakato/repos","events_url":"https://api.github.com/users/yakato/events{/privacy}","received_events_url":"https://api.github.com/users/yakato/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yakato/codility-js","description":null,"fork":false,"url":"https://api.github.com/repos/yakato/codility-js","forks_url":"https://api.github.com/repos/yakato/codility-js/forks","keys_url":"https://api.github.com/repos/yakato/codility-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yakato/codility-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yakato/codility-js/teams","hooks_url":"https://api.github.com/repos/yakato/codility-js/hooks","issue_events_url":"https://api.github.com/repos/yakato/codility-js/issues/events{/number}","events_url":"https://api.github.com/repos/yakato/codility-js/events","assignees_url":"https://api.github.com/repos/yakato/codility-js/assignees{/user}","branches_url":"https://api.github.com/repos/yakato/codility-js/branches{/branch}","tags_url":"https://api.github.com/repos/yakato/codility-js/tags","blobs_url":"https://api.github.com/repos/yakato/codility-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yakato/codility-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yakato/codility-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/yakato/codility-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yakato/codility-js/statuses/{sha}","languages_url":"https://api.github.com/repos/yakato/codility-js/languages","stargazers_url":"https://api.github.com/repos/yakato/codility-js/stargazers","contributors_url":"https://api.github.com/repos/yakato/codility-js/contributors","subscribers_url":"https://api.github.com/repos/yakato/codility-js/subscribers","subscription_url":"https://api.github.com/repos/yakato/codility-js/subscription","commits_url":"https://api.github.com/repos/yakato/codility-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/yakato/codility-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/yakato/codility-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/yakato/codility-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/yakato/codility-js/contents/{+path}","compare_url":"https://api.github.com/repos/yakato/codility-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yakato/codility-js/merges","archive_url":"https://api.github.com/repos/yakato/codility-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yakato/codility-js/downloads","issues_url":"https://api.github.com/repos/yakato/codility-js/issues{/number}","pulls_url":"https://api.github.com/repos/yakato/codility-js/pulls{/number}","milestones_url":"https://api.github.com/repos/yakato/codility-js/milestones{/number}","notifications_url":"https://api.github.com/repos/yakato/codility-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yakato/codility-js/labels{/name}","releases_url":"https://api.github.com/repos/yakato/codility-js/releases{/id}","deployments_url":"https://api.github.com/repos/yakato/codility-js/deployments","created_at":"2016-11-17T10:43:24Z","updated_at":"2016-11-17T13:49:43Z","pushed_at":"2016-12-22T14:05:07Z","git_url":"git://github.com/yakato/codility-js.git","ssh_url":"git@github.com:yakato/codility-js.git","clone_url":"https://github.com/yakato/codility-js.git","svn_url":"https://github.com/yakato/codility-js","homepage":null,"size":2101,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yakato/codility-js/pulls/13"},"html":{"href":"https://github.com/yakato/codility-js/pull/13"},"issue":{"href":"https://api.github.com/repos/yakato/codility-js/issues/13"},"comments":{"href":"https://api.github.com/repos/yakato/codility-js/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/yakato/codility-js/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/yakato/codility-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yakato/codility-js/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/yakato/codility-js/statuses/d2938acdc2f3c5904eda218e57641c8a37620506"}}}}
{"actor":{"display_login":"imanel"}}