{"action":"created","comment":{"url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/pulls/comments/182150807","pull_request_review_id":112900282,"id":182150807,"diff_hunk":"@@ -2,33 +2,73 @@ const items = ['Pencil', 'Notebook', 'yo-yo', 'Gum'];\n \n function firstItem(arr, cb) {\n   // firstItem passes the first item of the given array to the callback function.\n+  return cb(arr[0]);\n }\n+firstItem(items, first => first);\n \n function getLength(arr, cb) {\n   // getLength passes the length of the array into the callback.\n+  return cb(arr.length);\n }\n+getLength(items, len => len);\n \n function last(arr, cb) {\n   // last passes the last item of the array into the callback.\n+  return cb(arr[arr.length - 1]);\n }\n+last(items, last => last);\n \n function sumNums(x, y, cb) {\n   // sumNums adds two numbers (x, y) and passes the result to the callback.\n+  const z = x + y;\n+  return cb(z);\n }\n+sumNums(1, 2, (z) => z);\n \n function multiplyNums(x, y, cb) {\n   // multiplyNums multiplies two numbers and passes the result to the callback.\n+  const z = x * y;\n+  return cb(z);\n }\n+multiplyNums(2, 5, z => z);\n \n function contains(item, list, cb) {\n   // contains checks if an item is present inside of the given array/list.\n   // Pass true to the callback if it is, otherwise pass false.\n+  for (let i = 0; i < list.length; i++) {\n+    if (item === list[i]) {\n+      return cb(true);\n+    }\n+  }\n+  \n+  return cb(false);\n }\n+contains('Chickens', items, bool => bool);\n \n /* STRETCH PROBLEM */\n-\n function removeDuplicates(array, cb) {\n   // removeDuplicates removes all duplicate values from the given array.\n   // Pass the duplicate free array to the callback function.\n   // Do not mutate the original array.\n+  const newArr = [...array];\n+  const noDupesArr = [];\n+  \n+  newArr.sort();\n+  \n+  for (let i = 0; i < newArr.length; i++) {\n+    if (i === 0) {\n+      noDupesArr.push(newArr[i]);\n+    }\n+    else if (newArr[i] !== noDupesArr[noDupesArr.length - 1]) {","path":"assignments/callbacks.js","position":62,"original_position":62,"commit_id":"5c85975b720feb0afc4ac57ca59d4ceffca7964a","original_commit_id":"5c85975b720feb0afc4ac57ca59d4ceffca7964a","user":{"login":"etisdew","id":26851121,"avatar_url":"https://avatars2.githubusercontent.com/u/26851121?v=4","gravatar_id":"","url":"https://api.github.com/users/etisdew","html_url":"https://github.com/etisdew","followers_url":"https://api.github.com/users/etisdew/followers","following_url":"https://api.github.com/users/etisdew/following{/other_user}","gists_url":"https://api.github.com/users/etisdew/gists{/gist_id}","starred_url":"https://api.github.com/users/etisdew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etisdew/subscriptions","organizations_url":"https://api.github.com/users/etisdew/orgs","repos_url":"https://api.github.com/users/etisdew/repos","events_url":"https://api.github.com/users/etisdew/events{/privacy}","received_events_url":"https://api.github.com/users/etisdew/received_events","type":"User","site_admin":false},"body":"I love this solution! Great job man :+1: ","created_at":"2018-04-17T16:45:40Z","updated_at":"2018-04-17T16:45:40Z","html_url":"https://github.com/LambdaSchool/JavaScript-I/pull/41#discussion_r182150807","pull_request_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/pulls/41","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/LambdaSchool/JavaScript-I/pulls/comments/182150807"},"html":{"href":"https://github.com/LambdaSchool/JavaScript-I/pull/41#discussion_r182150807"},"pull_request":{"href":"https://api.github.com/repos/LambdaSchool/JavaScript-I/pulls/41"}}},"pull_request":{"url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/pulls/41","id":182007403,"html_url":"https://github.com/LambdaSchool/JavaScript-I/pull/41","diff_url":"https://github.com/LambdaSchool/JavaScript-I/pull/41.diff","patch_url":"https://github.com/LambdaSchool/JavaScript-I/pull/41.patch","issue_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/issues/41","number":41,"state":"open","locked":false,"title":"Brandon Benefield: JavaScript-I","user":{"login":"bbenefield89","id":29239201,"avatar_url":"https://avatars0.githubusercontent.com/u/29239201?v=4","gravatar_id":"","url":"https://api.github.com/users/bbenefield89","html_url":"https://github.com/bbenefield89","followers_url":"https://api.github.com/users/bbenefield89/followers","following_url":"https://api.github.com/users/bbenefield89/following{/other_user}","gists_url":"https://api.github.com/users/bbenefield89/gists{/gist_id}","starred_url":"https://api.github.com/users/bbenefield89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbenefield89/subscriptions","organizations_url":"https://api.github.com/users/bbenefield89/orgs","repos_url":"https://api.github.com/users/bbenefield89/repos","events_url":"https://api.github.com/users/bbenefield89/events{/privacy}","received_events_url":"https://api.github.com/users/bbenefield89/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-16T22:40:58Z","updated_at":"2018-04-17T16:45:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9a500dade43f39d3fa99a1400bbba7bf6fc14c94","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/pulls/41/commits","review_comments_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/pulls/41/comments","review_comment_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/issues/41/comments","statuses_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/statuses/5c85975b720feb0afc4ac57ca59d4ceffca7964a","head":{"label":"bbenefield89:master","ref":"master","sha":"5c85975b720feb0afc4ac57ca59d4ceffca7964a","user":{"login":"bbenefield89","id":29239201,"avatar_url":"https://avatars0.githubusercontent.com/u/29239201?v=4","gravatar_id":"","url":"https://api.github.com/users/bbenefield89","html_url":"https://github.com/bbenefield89","followers_url":"https://api.github.com/users/bbenefield89/followers","following_url":"https://api.github.com/users/bbenefield89/following{/other_user}","gists_url":"https://api.github.com/users/bbenefield89/gists{/gist_id}","starred_url":"https://api.github.com/users/bbenefield89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbenefield89/subscriptions","organizations_url":"https://api.github.com/users/bbenefield89/orgs","repos_url":"https://api.github.com/users/bbenefield89/repos","events_url":"https://api.github.com/users/bbenefield89/events{/privacy}","received_events_url":"https://api.github.com/users/bbenefield89/received_events","type":"User","site_admin":false},"repo":{"id":129791341,"name":"JavaScript-I","full_name":"bbenefield89/JavaScript-I","owner":{"login":"bbenefield89","id":29239201,"avatar_url":"https://avatars0.githubusercontent.com/u/29239201?v=4","gravatar_id":"","url":"https://api.github.com/users/bbenefield89","html_url":"https://github.com/bbenefield89","followers_url":"https://api.github.com/users/bbenefield89/followers","following_url":"https://api.github.com/users/bbenefield89/following{/other_user}","gists_url":"https://api.github.com/users/bbenefield89/gists{/gist_id}","starred_url":"https://api.github.com/users/bbenefield89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbenefield89/subscriptions","organizations_url":"https://api.github.com/users/bbenefield89/orgs","repos_url":"https://api.github.com/users/bbenefield89/repos","events_url":"https://api.github.com/users/bbenefield89/events{/privacy}","received_events_url":"https://api.github.com/users/bbenefield89/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bbenefield89/JavaScript-I","description":null,"fork":true,"url":"https://api.github.com/repos/bbenefield89/JavaScript-I","forks_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/forks","keys_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/teams","hooks_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/hooks","issue_events_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/issues/events{/number}","events_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/events","assignees_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/assignees{/user}","branches_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/branches{/branch}","tags_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/tags","blobs_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/git/refs{/sha}","trees_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/statuses/{sha}","languages_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/languages","stargazers_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/stargazers","contributors_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/contributors","subscribers_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/subscribers","subscription_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/subscription","commits_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/commits{/sha}","git_commits_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/git/commits{/sha}","comments_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/comments{/number}","issue_comment_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/issues/comments{/number}","contents_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/contents/{+path}","compare_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/merges","archive_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/downloads","issues_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/issues{/number}","pulls_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/pulls{/number}","milestones_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/milestones{/number}","notifications_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/labels{/name}","releases_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/releases{/id}","deployments_url":"https://api.github.com/repos/bbenefield89/JavaScript-I/deployments","created_at":"2018-04-16T18:57:00Z","updated_at":"2018-04-16T22:38:18Z","pushed_at":"2018-04-16T22:38:17Z","git_url":"git://github.com/bbenefield89/JavaScript-I.git","ssh_url":"git@github.com:bbenefield89/JavaScript-I.git","clone_url":"https://github.com/bbenefield89/JavaScript-I.git","svn_url":"https://github.com/bbenefield89/JavaScript-I","homepage":null,"size":18,"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":"LambdaSchool:master","ref":"master","sha":"335d554d09ffc007b6c9c1eed1ad71fbd1dd4fb7","user":{"login":"LambdaSchool","id":24780114,"avatar_url":"https://avatars1.githubusercontent.com/u/24780114?v=4","gravatar_id":"","url":"https://api.github.com/users/LambdaSchool","html_url":"https://github.com/LambdaSchool","followers_url":"https://api.github.com/users/LambdaSchool/followers","following_url":"https://api.github.com/users/LambdaSchool/following{/other_user}","gists_url":"https://api.github.com/users/LambdaSchool/gists{/gist_id}","starred_url":"https://api.github.com/users/LambdaSchool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LambdaSchool/subscriptions","organizations_url":"https://api.github.com/users/LambdaSchool/orgs","repos_url":"https://api.github.com/users/LambdaSchool/repos","events_url":"https://api.github.com/users/LambdaSchool/events{/privacy}","received_events_url":"https://api.github.com/users/LambdaSchool/received_events","type":"Organization","site_admin":false},"repo":{"id":128836348,"name":"JavaScript-I","full_name":"LambdaSchool/JavaScript-I","owner":{"login":"LambdaSchool","id":24780114,"avatar_url":"https://avatars1.githubusercontent.com/u/24780114?v=4","gravatar_id":"","url":"https://api.github.com/users/LambdaSchool","html_url":"https://github.com/LambdaSchool","followers_url":"https://api.github.com/users/LambdaSchool/followers","following_url":"https://api.github.com/users/LambdaSchool/following{/other_user}","gists_url":"https://api.github.com/users/LambdaSchool/gists{/gist_id}","starred_url":"https://api.github.com/users/LambdaSchool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LambdaSchool/subscriptions","organizations_url":"https://api.github.com/users/LambdaSchool/orgs","repos_url":"https://api.github.com/users/LambdaSchool/repos","events_url":"https://api.github.com/users/LambdaSchool/events{/privacy}","received_events_url":"https://api.github.com/users/LambdaSchool/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LambdaSchool/JavaScript-I","description":null,"fork":false,"url":"https://api.github.com/repos/LambdaSchool/JavaScript-I","forks_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/forks","keys_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/teams","hooks_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/hooks","issue_events_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/issues/events{/number}","events_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/events","assignees_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/assignees{/user}","branches_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/branches{/branch}","tags_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/tags","blobs_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/git/refs{/sha}","trees_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/statuses/{sha}","languages_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/languages","stargazers_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/stargazers","contributors_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/contributors","subscribers_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/subscribers","subscription_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/subscription","commits_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/commits{/sha}","git_commits_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/git/commits{/sha}","comments_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/comments{/number}","issue_comment_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/issues/comments{/number}","contents_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/contents/{+path}","compare_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/merges","archive_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/downloads","issues_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/issues{/number}","pulls_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/pulls{/number}","milestones_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/milestones{/number}","notifications_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/labels{/name}","releases_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/releases{/id}","deployments_url":"https://api.github.com/repos/LambdaSchool/JavaScript-I/deployments","created_at":"2018-04-09T21:32:17Z","updated_at":"2018-04-16T05:25:51Z","pushed_at":"2018-04-17T16:44:55Z","git_url":"git://github.com/LambdaSchool/JavaScript-I.git","ssh_url":"git@github.com:LambdaSchool/JavaScript-I.git","clone_url":"https://github.com/LambdaSchool/JavaScript-I.git","svn_url":"https://github.com/LambdaSchool/JavaScript-I","homepage":null,"size":13,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":58,"mirror_url":null,"archived":false,"open_issues_count":56,"license":null,"forks":58,"open_issues":56,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LambdaSchool/JavaScript-I/pulls/41"},"html":{"href":"https://github.com/LambdaSchool/JavaScript-I/pull/41"},"issue":{"href":"https://api.github.com/repos/LambdaSchool/JavaScript-I/issues/41"},"comments":{"href":"https://api.github.com/repos/LambdaSchool/JavaScript-I/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/LambdaSchool/JavaScript-I/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/LambdaSchool/JavaScript-I/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LambdaSchool/JavaScript-I/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/LambdaSchool/JavaScript-I/statuses/5c85975b720feb0afc4ac57ca59d4ceffca7964a"}},"author_association":"NONE"}}
{"actor":{"display_login":"etisdew"}}