{"action":"created","comment":{"url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/pulls/comments/186795091","pull_request_review_id":118443607,"id":186795091,"diff_hunk":"@@ -48,6 +90,20 @@ var wordsUnique = [\n   'bring'\n ];\n \n+function uniquifyArray (array){\n+  var newArray = [];\n+  for (i = 0 ; i < array.length ; i++){\n+    var index = array.indexOf(array[i]);\n+    if (index == i){\n+      newArray.push(array[i]);\n+    }\n+  }","path":"starter-code/src/functions-and-arrays.js","position":80,"original_position":80,"commit_id":"06ebe1ab0cd0bfd0390cf8e2506004b1fb2a8244","original_commit_id":"06ebe1ab0cd0bfd0390cf8e2506004b1fb2a8244","user":{"login":"ta-web-mad","id":26923217,"avatar_url":"https://avatars3.githubusercontent.com/u/26923217?v=4","gravatar_id":"","url":"https://api.github.com/users/ta-web-mad","html_url":"https://github.com/ta-web-mad","followers_url":"https://api.github.com/users/ta-web-mad/followers","following_url":"https://api.github.com/users/ta-web-mad/following{/other_user}","gists_url":"https://api.github.com/users/ta-web-mad/gists{/gist_id}","starred_url":"https://api.github.com/users/ta-web-mad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ta-web-mad/subscriptions","organizations_url":"https://api.github.com/users/ta-web-mad/orgs","repos_url":"https://api.github.com/users/ta-web-mad/repos","events_url":"https://api.github.com/users/ta-web-mad/events{/privacy}","received_events_url":"https://api.github.com/users/ta-web-mad/received_events","type":"User","site_admin":false},"body":"Podéis también evaluar array.indexOf( ) directamente si queréis. Pero es correcto","created_at":"2018-05-08T16:51:33Z","updated_at":"2018-05-08T16:54:41Z","html_url":"https://github.com/ironhack-labs/lab-javascript-functions-and-arrays/pull/370#discussion_r186795091","pull_request_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/pulls/370","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/pulls/comments/186795091"},"html":{"href":"https://github.com/ironhack-labs/lab-javascript-functions-and-arrays/pull/370#discussion_r186795091"},"pull_request":{"href":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/pulls/370"}}},"pull_request":{"url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/pulls/370","id":186115186,"html_url":"https://github.com/ironhack-labs/lab-javascript-functions-and-arrays/pull/370","diff_url":"https://github.com/ironhack-labs/lab-javascript-functions-and-arrays/pull/370.diff","patch_url":"https://github.com/ironhack-labs/lab-javascript-functions-and-arrays/pull/370.patch","issue_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/issues/370","number":370,"state":"open","locked":false,"title":"webptmad0418 - Marta S. y Belén G","user":{"login":"belengarcia","id":7067899,"avatar_url":"https://avatars1.githubusercontent.com/u/7067899?v=4","gravatar_id":"","url":"https://api.github.com/users/belengarcia","html_url":"https://github.com/belengarcia","followers_url":"https://api.github.com/users/belengarcia/followers","following_url":"https://api.github.com/users/belengarcia/following{/other_user}","gists_url":"https://api.github.com/users/belengarcia/gists{/gist_id}","starred_url":"https://api.github.com/users/belengarcia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/belengarcia/subscriptions","organizations_url":"https://api.github.com/users/belengarcia/orgs","repos_url":"https://api.github.com/users/belengarcia/repos","events_url":"https://api.github.com/users/belengarcia/events{/privacy}","received_events_url":"https://api.github.com/users/belengarcia/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-04T22:11:12Z","updated_at":"2018-05-08T16:54:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"67c55e7e27c388a3311ab01dfe9a809622f831e5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/pulls/370/commits","review_comments_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/pulls/370/comments","review_comment_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/issues/370/comments","statuses_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/statuses/06ebe1ab0cd0bfd0390cf8e2506004b1fb2a8244","head":{"label":"belengarcia:master","ref":"master","sha":"06ebe1ab0cd0bfd0390cf8e2506004b1fb2a8244","user":{"login":"belengarcia","id":7067899,"avatar_url":"https://avatars1.githubusercontent.com/u/7067899?v=4","gravatar_id":"","url":"https://api.github.com/users/belengarcia","html_url":"https://github.com/belengarcia","followers_url":"https://api.github.com/users/belengarcia/followers","following_url":"https://api.github.com/users/belengarcia/following{/other_user}","gists_url":"https://api.github.com/users/belengarcia/gists{/gist_id}","starred_url":"https://api.github.com/users/belengarcia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/belengarcia/subscriptions","organizations_url":"https://api.github.com/users/belengarcia/orgs","repos_url":"https://api.github.com/users/belengarcia/repos","events_url":"https://api.github.com/users/belengarcia/events{/privacy}","received_events_url":"https://api.github.com/users/belengarcia/received_events","type":"User","site_admin":false},"repo":{"id":131399150,"name":"lab-javascript-functions-and-arrays","full_name":"belengarcia/lab-javascript-functions-and-arrays","owner":{"login":"belengarcia","id":7067899,"avatar_url":"https://avatars1.githubusercontent.com/u/7067899?v=4","gravatar_id":"","url":"https://api.github.com/users/belengarcia","html_url":"https://github.com/belengarcia","followers_url":"https://api.github.com/users/belengarcia/followers","following_url":"https://api.github.com/users/belengarcia/following{/other_user}","gists_url":"https://api.github.com/users/belengarcia/gists{/gist_id}","starred_url":"https://api.github.com/users/belengarcia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/belengarcia/subscriptions","organizations_url":"https://api.github.com/users/belengarcia/orgs","repos_url":"https://api.github.com/users/belengarcia/repos","events_url":"https://api.github.com/users/belengarcia/events{/privacy}","received_events_url":"https://api.github.com/users/belengarcia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/belengarcia/lab-javascript-functions-and-arrays","description":"An exercise to apply Array iteration and Array manipulation tecniques ","fork":true,"url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays","forks_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/forks","keys_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/keys{/key_id}","collaborators_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/teams","hooks_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/hooks","issue_events_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/issues/events{/number}","events_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/events","assignees_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/assignees{/user}","branches_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/branches{/branch}","tags_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/tags","blobs_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/git/refs{/sha}","trees_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/git/trees{/sha}","statuses_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/statuses/{sha}","languages_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/languages","stargazers_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/stargazers","contributors_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/contributors","subscribers_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/subscribers","subscription_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/subscription","commits_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/commits{/sha}","git_commits_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/git/commits{/sha}","comments_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/comments{/number}","issue_comment_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/issues/comments{/number}","contents_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/contents/{+path}","compare_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/compare/{base}...{head}","merges_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/merges","archive_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/downloads","issues_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/issues{/number}","pulls_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/pulls{/number}","milestones_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/milestones{/number}","notifications_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/labels{/name}","releases_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/releases{/id}","deployments_url":"https://api.github.com/repos/belengarcia/lab-javascript-functions-and-arrays/deployments","created_at":"2018-04-28T10:16:33Z","updated_at":"2018-05-04T22:08:28Z","pushed_at":"2018-05-04T22:08:26Z","git_url":"git://github.com/belengarcia/lab-javascript-functions-and-arrays.git","ssh_url":"git@github.com:belengarcia/lab-javascript-functions-and-arrays.git","clone_url":"https://github.com/belengarcia/lab-javascript-functions-and-arrays.git","svn_url":"https://github.com/belengarcia/lab-javascript-functions-and-arrays","homepage":null,"size":67,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ironhack-labs:master","ref":"master","sha":"c4f4d5ac6fc2f00d3b1d060430173f4222890377","user":{"login":"ironhack-labs","id":25032046,"avatar_url":"https://avatars3.githubusercontent.com/u/25032046?v=4","gravatar_id":"","url":"https://api.github.com/users/ironhack-labs","html_url":"https://github.com/ironhack-labs","followers_url":"https://api.github.com/users/ironhack-labs/followers","following_url":"https://api.github.com/users/ironhack-labs/following{/other_user}","gists_url":"https://api.github.com/users/ironhack-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/ironhack-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ironhack-labs/subscriptions","organizations_url":"https://api.github.com/users/ironhack-labs/orgs","repos_url":"https://api.github.com/users/ironhack-labs/repos","events_url":"https://api.github.com/users/ironhack-labs/events{/privacy}","received_events_url":"https://api.github.com/users/ironhack-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":78553861,"name":"lab-javascript-functions-and-arrays","full_name":"ironhack-labs/lab-javascript-functions-and-arrays","owner":{"login":"ironhack-labs","id":25032046,"avatar_url":"https://avatars3.githubusercontent.com/u/25032046?v=4","gravatar_id":"","url":"https://api.github.com/users/ironhack-labs","html_url":"https://github.com/ironhack-labs","followers_url":"https://api.github.com/users/ironhack-labs/followers","following_url":"https://api.github.com/users/ironhack-labs/following{/other_user}","gists_url":"https://api.github.com/users/ironhack-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/ironhack-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ironhack-labs/subscriptions","organizations_url":"https://api.github.com/users/ironhack-labs/orgs","repos_url":"https://api.github.com/users/ironhack-labs/repos","events_url":"https://api.github.com/users/ironhack-labs/events{/privacy}","received_events_url":"https://api.github.com/users/ironhack-labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ironhack-labs/lab-javascript-functions-and-arrays","description":"An exercise to apply Array iteration and Array manipulation tecniques ","fork":false,"url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays","forks_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/forks","keys_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/teams","hooks_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/hooks","issue_events_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/issues/events{/number}","events_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/events","assignees_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/assignees{/user}","branches_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/branches{/branch}","tags_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/tags","blobs_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/git/refs{/sha}","trees_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/statuses/{sha}","languages_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/languages","stargazers_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/stargazers","contributors_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/contributors","subscribers_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/subscribers","subscription_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/subscription","commits_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/commits{/sha}","git_commits_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/git/commits{/sha}","comments_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/comments{/number}","issue_comment_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/issues/comments{/number}","contents_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/contents/{+path}","compare_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/merges","archive_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/downloads","issues_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/issues{/number}","pulls_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/pulls{/number}","milestones_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/milestones{/number}","notifications_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/labels{/name}","releases_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/releases{/id}","deployments_url":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/deployments","created_at":"2017-01-10T16:50:27Z","updated_at":"2018-01-21T01:23:57Z","pushed_at":"2018-05-07T13:51:17Z","git_url":"git://github.com/ironhack-labs/lab-javascript-functions-and-arrays.git","ssh_url":"git@github.com:ironhack-labs/lab-javascript-functions-and-arrays.git","clone_url":"https://github.com/ironhack-labs/lab-javascript-functions-and-arrays.git","svn_url":"https://github.com/ironhack-labs/lab-javascript-functions-and-arrays","homepage":null,"size":66,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":553,"mirror_url":null,"archived":false,"open_issues_count":56,"license":null,"forks":553,"open_issues":56,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/pulls/370"},"html":{"href":"https://github.com/ironhack-labs/lab-javascript-functions-and-arrays/pull/370"},"issue":{"href":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/issues/370"},"comments":{"href":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/issues/370/comments"},"review_comments":{"href":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/pulls/370/comments"},"review_comment":{"href":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/pulls/370/commits"},"statuses":{"href":"https://api.github.com/repos/ironhack-labs/lab-javascript-functions-and-arrays/statuses/06ebe1ab0cd0bfd0390cf8e2506004b1fb2a8244"}},"author_association":"NONE"}}
{"actor":{"display_login":"ta-web-mad"}}