{"action":"created","comment":{"url":"https://api.github.com/repos/da2k/curso-javascript-ninja/pulls/comments/37736485","id":37736485,"diff_hunk":"@@ -20,18 +22,24 @@ segundo, um número. A função deve retornar um índice do array que foi passad\n no primeiro parâmetro. O índice a ser retornado, deve ser o número passado no\n segundo parâmetro.\n */\n-// ?\n+function indice(arr, posicao){\n+    return arr[posicao];\n+};\n \n /*\n Declare uma variável que recebe um array com 5 valores, de tipos diferentes.\n */\n-// ?\n+var valoresDistintos = [ 1, 'dois', null, undefined, true ];\n \n /*\n Invoque a função criada acima, fazendo-a retornar todos os valores do último\n array criado.\n */\n-// ?\n+indice(valoresDistintos, 0);","path":"challenge-05/challenge-05.js","position":43,"original_position":43,"commit_id":"83cf95d43ff5b6987f2d4feb826fb71209e0bef3","original_commit_id":"83cf95d43ff5b6987f2d4feb826fb71209e0bef3","user":{"login":"fdaciuk","id":487669,"avatar_url":"https://avatars.githubusercontent.com/u/487669?v=3","gravatar_id":"","url":"https://api.github.com/users/fdaciuk","html_url":"https://github.com/fdaciuk","followers_url":"https://api.github.com/users/fdaciuk/followers","following_url":"https://api.github.com/users/fdaciuk/following{/other_user}","gists_url":"https://api.github.com/users/fdaciuk/gists{/gist_id}","starred_url":"https://api.github.com/users/fdaciuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fdaciuk/subscriptions","organizations_url":"https://api.github.com/users/fdaciuk/orgs","repos_url":"https://api.github.com/users/fdaciuk/repos","events_url":"https://api.github.com/users/fdaciuk/events{/privacy}","received_events_url":"https://api.github.com/users/fdaciuk/received_events","type":"User","site_admin":false},"body":"-1\r\nfaltou mostrar no console ;)","created_at":"2015-08-24T10:05:07Z","updated_at":"2015-08-24T10:05:07Z","html_url":"https://github.com/da2k/curso-javascript-ninja/pull/266#discussion_r37736485","pull_request_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/pulls/266","_links":{"self":{"href":"https://api.github.com/repos/da2k/curso-javascript-ninja/pulls/comments/37736485"},"html":{"href":"https://github.com/da2k/curso-javascript-ninja/pull/266#discussion_r37736485"},"pull_request":{"href":"https://api.github.com/repos/da2k/curso-javascript-ninja/pulls/266"}}},"pull_request":{"url":"https://api.github.com/repos/da2k/curso-javascript-ninja/pulls/266","id":42524209,"html_url":"https://github.com/da2k/curso-javascript-ninja/pull/266","diff_url":"https://github.com/da2k/curso-javascript-ninja/pull/266.diff","patch_url":"https://github.com/da2k/curso-javascript-ninja/pull/266.patch","issue_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/issues/266","number":266,"state":"open","locked":false,"title":"Challenge 05","user":{"login":"brunotortelli","id":1440797,"avatar_url":"https://avatars.githubusercontent.com/u/1440797?v=3","gravatar_id":"","url":"https://api.github.com/users/brunotortelli","html_url":"https://github.com/brunotortelli","followers_url":"https://api.github.com/users/brunotortelli/followers","following_url":"https://api.github.com/users/brunotortelli/following{/other_user}","gists_url":"https://api.github.com/users/brunotortelli/gists{/gist_id}","starred_url":"https://api.github.com/users/brunotortelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunotortelli/subscriptions","organizations_url":"https://api.github.com/users/brunotortelli/orgs","repos_url":"https://api.github.com/users/brunotortelli/repos","events_url":"https://api.github.com/users/brunotortelli/events{/privacy}","received_events_url":"https://api.github.com/users/brunotortelli/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-15T19:12:39Z","updated_at":"2015-08-24T10:05:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/pulls/266/commits","review_comments_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/pulls/266/comments","review_comment_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/pulls/comments{/number}","comments_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/issues/266/comments","statuses_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/statuses/83cf95d43ff5b6987f2d4feb826fb71209e0bef3","head":{"label":"brunotortelli:challenge-05","ref":"challenge-05","sha":"83cf95d43ff5b6987f2d4feb826fb71209e0bef3","user":{"login":"brunotortelli","id":1440797,"avatar_url":"https://avatars.githubusercontent.com/u/1440797?v=3","gravatar_id":"","url":"https://api.github.com/users/brunotortelli","html_url":"https://github.com/brunotortelli","followers_url":"https://api.github.com/users/brunotortelli/followers","following_url":"https://api.github.com/users/brunotortelli/following{/other_user}","gists_url":"https://api.github.com/users/brunotortelli/gists{/gist_id}","starred_url":"https://api.github.com/users/brunotortelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunotortelli/subscriptions","organizations_url":"https://api.github.com/users/brunotortelli/orgs","repos_url":"https://api.github.com/users/brunotortelli/repos","events_url":"https://api.github.com/users/brunotortelli/events{/privacy}","received_events_url":"https://api.github.com/users/brunotortelli/received_events","type":"User","site_admin":false},"repo":{"id":33502213,"name":"curso-javascript-ninja","full_name":"brunotortelli/curso-javascript-ninja","owner":{"login":"brunotortelli","id":1440797,"avatar_url":"https://avatars.githubusercontent.com/u/1440797?v=3","gravatar_id":"","url":"https://api.github.com/users/brunotortelli","html_url":"https://github.com/brunotortelli","followers_url":"https://api.github.com/users/brunotortelli/followers","following_url":"https://api.github.com/users/brunotortelli/following{/other_user}","gists_url":"https://api.github.com/users/brunotortelli/gists{/gist_id}","starred_url":"https://api.github.com/users/brunotortelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunotortelli/subscriptions","organizations_url":"https://api.github.com/users/brunotortelli/orgs","repos_url":"https://api.github.com/users/brunotortelli/repos","events_url":"https://api.github.com/users/brunotortelli/events{/privacy}","received_events_url":"https://api.github.com/users/brunotortelli/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brunotortelli/curso-javascript-ninja","description":"Curso Javascript Ninja","fork":true,"url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja","forks_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/forks","keys_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/teams","hooks_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/hooks","issue_events_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/issues/events{/number}","events_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/events","assignees_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/assignees{/user}","branches_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/branches{/branch}","tags_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/tags","blobs_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/git/refs{/sha}","trees_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/statuses/{sha}","languages_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/languages","stargazers_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/stargazers","contributors_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/contributors","subscribers_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/subscribers","subscription_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/subscription","commits_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/commits{/sha}","git_commits_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/git/commits{/sha}","comments_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/comments{/number}","issue_comment_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/issues/comments{/number}","contents_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/contents/{+path}","compare_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/merges","archive_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/downloads","issues_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/issues{/number}","pulls_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/pulls{/number}","milestones_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/milestones{/number}","notifications_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/labels{/name}","releases_url":"https://api.github.com/repos/brunotortelli/curso-javascript-ninja/releases{/id}","created_at":"2015-04-06T19:53:40Z","updated_at":"2015-05-12T00:38:11Z","pushed_at":"2015-08-19T17:32:02Z","git_url":"git://github.com/brunotortelli/curso-javascript-ninja.git","ssh_url":"git@github.com:brunotortelli/curso-javascript-ninja.git","clone_url":"https://github.com/brunotortelli/curso-javascript-ninja.git","svn_url":"https://github.com/brunotortelli/curso-javascript-ninja","homepage":"http://blog.da2k.com.br/curso-javascript-ninja/","size":247,"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":"da2k:master","ref":"master","sha":"41c8199f6fb9fb2d07618cfee211b5c6db9cf381","user":{"login":"da2k","id":11011075,"avatar_url":"https://avatars.githubusercontent.com/u/11011075?v=3","gravatar_id":"","url":"https://api.github.com/users/da2k","html_url":"https://github.com/da2k","followers_url":"https://api.github.com/users/da2k/followers","following_url":"https://api.github.com/users/da2k/following{/other_user}","gists_url":"https://api.github.com/users/da2k/gists{/gist_id}","starred_url":"https://api.github.com/users/da2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/da2k/subscriptions","organizations_url":"https://api.github.com/users/da2k/orgs","repos_url":"https://api.github.com/users/da2k/repos","events_url":"https://api.github.com/users/da2k/events{/privacy}","received_events_url":"https://api.github.com/users/da2k/received_events","type":"Organization","site_admin":false},"repo":{"id":30896610,"name":"curso-javascript-ninja","full_name":"da2k/curso-javascript-ninja","owner":{"login":"da2k","id":11011075,"avatar_url":"https://avatars.githubusercontent.com/u/11011075?v=3","gravatar_id":"","url":"https://api.github.com/users/da2k","html_url":"https://github.com/da2k","followers_url":"https://api.github.com/users/da2k/followers","following_url":"https://api.github.com/users/da2k/following{/other_user}","gists_url":"https://api.github.com/users/da2k/gists{/gist_id}","starred_url":"https://api.github.com/users/da2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/da2k/subscriptions","organizations_url":"https://api.github.com/users/da2k/orgs","repos_url":"https://api.github.com/users/da2k/repos","events_url":"https://api.github.com/users/da2k/events{/privacy}","received_events_url":"https://api.github.com/users/da2k/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/da2k/curso-javascript-ninja","description":"Curso Javascript Ninja","fork":false,"url":"https://api.github.com/repos/da2k/curso-javascript-ninja","forks_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/forks","keys_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/keys{/key_id}","collaborators_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/teams","hooks_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/hooks","issue_events_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/issues/events{/number}","events_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/events","assignees_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/assignees{/user}","branches_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/branches{/branch}","tags_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/tags","blobs_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/git/refs{/sha}","trees_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/git/trees{/sha}","statuses_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/statuses/{sha}","languages_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/languages","stargazers_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/stargazers","contributors_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/contributors","subscribers_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/subscribers","subscription_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/subscription","commits_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/commits{/sha}","git_commits_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/git/commits{/sha}","comments_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/comments{/number}","issue_comment_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/issues/comments{/number}","contents_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/contents/{+path}","compare_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/compare/{base}...{head}","merges_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/merges","archive_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/downloads","issues_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/issues{/number}","pulls_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/pulls{/number}","milestones_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/milestones{/number}","notifications_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/labels{/name}","releases_url":"https://api.github.com/repos/da2k/curso-javascript-ninja/releases{/id}","created_at":"2015-02-17T00:57:58Z","updated_at":"2015-08-20T01:57:37Z","pushed_at":"2015-08-24T00:03:54Z","git_url":"git://github.com/da2k/curso-javascript-ninja.git","ssh_url":"git@github.com:da2k/curso-javascript-ninja.git","clone_url":"https://github.com/da2k/curso-javascript-ninja.git","svn_url":"https://github.com/da2k/curso-javascript-ninja","homepage":"http://blog.da2k.com.br/curso-javascript-ninja/","size":2868,"stargazers_count":34,"watchers_count":34,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":41,"mirror_url":null,"open_issues_count":39,"forks":41,"open_issues":39,"watchers":34,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/da2k/curso-javascript-ninja/pulls/266"},"html":{"href":"https://github.com/da2k/curso-javascript-ninja/pull/266"},"issue":{"href":"https://api.github.com/repos/da2k/curso-javascript-ninja/issues/266"},"comments":{"href":"https://api.github.com/repos/da2k/curso-javascript-ninja/issues/266/comments"},"review_comments":{"href":"https://api.github.com/repos/da2k/curso-javascript-ninja/pulls/266/comments"},"review_comment":{"href":"https://api.github.com/repos/da2k/curso-javascript-ninja/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/da2k/curso-javascript-ninja/pulls/266/commits"},"statuses":{"href":"https://api.github.com/repos/da2k/curso-javascript-ninja/statuses/83cf95d43ff5b6987f2d4feb826fb71209e0bef3"}}}}