{"action":"created","comment":{"url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/pulls/comments/100894629","pull_request_review_id":21606613,"id":100894629,"diff_hunk":"@@ -0,0 +1,21 @@\n+import dataTypeCheck from '../src/dataTypeCheck'\n+export default function setCompliment(array, compliment) {\n+\n+  if(!dataTypeCheck(array,'array')) {\n+    return \"Wrong Data Type\"\n+  }\n+\n+let result = []\n+  for(let i=0;i<compliment.length;i++) {\n+    let toAdd = true\n+    for(let j=0;j<array.length;j++) {","path":"src/setCompliment.js","position":11,"original_position":11,"commit_id":"10e32943f8df6a5750d8876986ecf8e531603afb","original_commit_id":"10e32943f8df6a5750d8876986ecf8e531603afb","user":{"login":"Anasauce","id":6962945,"avatar_url":"https://avatars.githubusercontent.com/u/6962945?v=3","gravatar_id":"","url":"https://api.github.com/users/Anasauce","html_url":"https://github.com/Anasauce","followers_url":"https://api.github.com/users/Anasauce/followers","following_url":"https://api.github.com/users/Anasauce/following{/other_user}","gists_url":"https://api.github.com/users/Anasauce/gists{/gist_id}","starred_url":"https://api.github.com/users/Anasauce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anasauce/subscriptions","organizations_url":"https://api.github.com/users/Anasauce/orgs","repos_url":"https://api.github.com/users/Anasauce/repos","events_url":"https://api.github.com/users/Anasauce/events{/privacy}","received_events_url":"https://api.github.com/users/Anasauce/received_events","type":"User","site_admin":false},"body":"I'm not seeing a need to define a temp variable here for ```toAdd```\r\n\r\nmaybe:\r\n\r\n```\r\nfor( let j=0; j < array.length; j++ ) {\r\n  if( compliment[i] !=== array[j] ) {\r\n    result.push( compliment[i] )\r\n  }\r\n}\r\n return result\r\n```\r\n\r\n\r\n\r\n","created_at":"2017-02-13T20:50:27Z","updated_at":"2017-02-13T21:02:43Z","html_url":"https://github.com/TrevorJamesH/core-algorithms/pull/23#discussion_r100894629","pull_request_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/TrevorJamesH/core-algorithms/pulls/comments/100894629"},"html":{"href":"https://github.com/TrevorJamesH/core-algorithms/pull/23#discussion_r100894629"},"pull_request":{"href":"https://api.github.com/repos/TrevorJamesH/core-algorithms/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/pulls/23","id":105934096,"html_url":"https://github.com/TrevorJamesH/core-algorithms/pull/23","diff_url":"https://github.com/TrevorJamesH/core-algorithms/pull/23.diff","patch_url":"https://github.com/TrevorJamesH/core-algorithms/pull/23.patch","issue_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/issues/23","number":23,"state":"open","locked":false,"title":"Core Algorithms delicate-cow","user":{"login":"TrevorJamesH","id":20617621,"avatar_url":"https://avatars.githubusercontent.com/u/20617621?v=3","gravatar_id":"","url":"https://api.github.com/users/TrevorJamesH","html_url":"https://github.com/TrevorJamesH","followers_url":"https://api.github.com/users/TrevorJamesH/followers","following_url":"https://api.github.com/users/TrevorJamesH/following{/other_user}","gists_url":"https://api.github.com/users/TrevorJamesH/gists{/gist_id}","starred_url":"https://api.github.com/users/TrevorJamesH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrevorJamesH/subscriptions","organizations_url":"https://api.github.com/users/TrevorJamesH/orgs","repos_url":"https://api.github.com/users/TrevorJamesH/repos","events_url":"https://api.github.com/users/TrevorJamesH/events{/privacy}","received_events_url":"https://api.github.com/users/TrevorJamesH/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-02-13T16:54:42Z","updated_at":"2017-02-13T21:02:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4bef8ce2e16baf39b06419cec75d8bec68fafa55","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/pulls/23/commits","review_comments_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/pulls/23/comments","review_comment_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/issues/23/comments","statuses_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/statuses/10e32943f8df6a5750d8876986ecf8e531603afb","head":{"label":"TrevorJamesH:master","ref":"master","sha":"10e32943f8df6a5750d8876986ecf8e531603afb","user":{"login":"TrevorJamesH","id":20617621,"avatar_url":"https://avatars.githubusercontent.com/u/20617621?v=3","gravatar_id":"","url":"https://api.github.com/users/TrevorJamesH","html_url":"https://github.com/TrevorJamesH","followers_url":"https://api.github.com/users/TrevorJamesH/followers","following_url":"https://api.github.com/users/TrevorJamesH/following{/other_user}","gists_url":"https://api.github.com/users/TrevorJamesH/gists{/gist_id}","starred_url":"https://api.github.com/users/TrevorJamesH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrevorJamesH/subscriptions","organizations_url":"https://api.github.com/users/TrevorJamesH/orgs","repos_url":"https://api.github.com/users/TrevorJamesH/repos","events_url":"https://api.github.com/users/TrevorJamesH/events{/privacy}","received_events_url":"https://api.github.com/users/TrevorJamesH/received_events","type":"User","site_admin":false},"repo":{"id":81122084,"name":"core-algorithms","full_name":"TrevorJamesH/core-algorithms","owner":{"login":"TrevorJamesH","id":20617621,"avatar_url":"https://avatars.githubusercontent.com/u/20617621?v=3","gravatar_id":"","url":"https://api.github.com/users/TrevorJamesH","html_url":"https://github.com/TrevorJamesH","followers_url":"https://api.github.com/users/TrevorJamesH/followers","following_url":"https://api.github.com/users/TrevorJamesH/following{/other_user}","gists_url":"https://api.github.com/users/TrevorJamesH/gists{/gist_id}","starred_url":"https://api.github.com/users/TrevorJamesH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrevorJamesH/subscriptions","organizations_url":"https://api.github.com/users/TrevorJamesH/orgs","repos_url":"https://api.github.com/users/TrevorJamesH/repos","events_url":"https://api.github.com/users/TrevorJamesH/events{/privacy}","received_events_url":"https://api.github.com/users/TrevorJamesH/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TrevorJamesH/core-algorithms","description":"Tests and implementations for algorithms commonly used in job interviews.","fork":true,"url":"https://api.github.com/repos/TrevorJamesH/core-algorithms","forks_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/forks","keys_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/teams","hooks_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/hooks","issue_events_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/issues/events{/number}","events_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/events","assignees_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/assignees{/user}","branches_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/branches{/branch}","tags_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/tags","blobs_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/git/refs{/sha}","trees_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/statuses/{sha}","languages_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/languages","stargazers_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/stargazers","contributors_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/contributors","subscribers_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/subscribers","subscription_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/subscription","commits_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/commits{/sha}","git_commits_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/git/commits{/sha}","comments_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/comments{/number}","issue_comment_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/issues/comments{/number}","contents_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/contents/{+path}","compare_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/merges","archive_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/downloads","issues_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/issues{/number}","pulls_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/pulls{/number}","milestones_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/milestones{/number}","notifications_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/labels{/name}","releases_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/releases{/id}","deployments_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/deployments","created_at":"2017-02-06T19:14:18Z","updated_at":"2017-02-06T19:14:20Z","pushed_at":"2017-02-13T16:54:42Z","git_url":"git://github.com/TrevorJamesH/core-algorithms.git","ssh_url":"git@github.com:TrevorJamesH/core-algorithms.git","clone_url":"https://github.com/TrevorJamesH/core-algorithms.git","svn_url":"https://github.com/TrevorJamesH/core-algorithms","homepage":null,"size":49,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"TrevorJamesH:empty3","ref":"empty3","sha":"a0ba0a2a5fe9fcfbf2f82bad6f5e953896e00470","user":{"login":"TrevorJamesH","id":20617621,"avatar_url":"https://avatars.githubusercontent.com/u/20617621?v=3","gravatar_id":"","url":"https://api.github.com/users/TrevorJamesH","html_url":"https://github.com/TrevorJamesH","followers_url":"https://api.github.com/users/TrevorJamesH/followers","following_url":"https://api.github.com/users/TrevorJamesH/following{/other_user}","gists_url":"https://api.github.com/users/TrevorJamesH/gists{/gist_id}","starred_url":"https://api.github.com/users/TrevorJamesH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrevorJamesH/subscriptions","organizations_url":"https://api.github.com/users/TrevorJamesH/orgs","repos_url":"https://api.github.com/users/TrevorJamesH/repos","events_url":"https://api.github.com/users/TrevorJamesH/events{/privacy}","received_events_url":"https://api.github.com/users/TrevorJamesH/received_events","type":"User","site_admin":false},"repo":{"id":81122084,"name":"core-algorithms","full_name":"TrevorJamesH/core-algorithms","owner":{"login":"TrevorJamesH","id":20617621,"avatar_url":"https://avatars.githubusercontent.com/u/20617621?v=3","gravatar_id":"","url":"https://api.github.com/users/TrevorJamesH","html_url":"https://github.com/TrevorJamesH","followers_url":"https://api.github.com/users/TrevorJamesH/followers","following_url":"https://api.github.com/users/TrevorJamesH/following{/other_user}","gists_url":"https://api.github.com/users/TrevorJamesH/gists{/gist_id}","starred_url":"https://api.github.com/users/TrevorJamesH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TrevorJamesH/subscriptions","organizations_url":"https://api.github.com/users/TrevorJamesH/orgs","repos_url":"https://api.github.com/users/TrevorJamesH/repos","events_url":"https://api.github.com/users/TrevorJamesH/events{/privacy}","received_events_url":"https://api.github.com/users/TrevorJamesH/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TrevorJamesH/core-algorithms","description":"Tests and implementations for algorithms commonly used in job interviews.","fork":true,"url":"https://api.github.com/repos/TrevorJamesH/core-algorithms","forks_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/forks","keys_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/teams","hooks_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/hooks","issue_events_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/issues/events{/number}","events_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/events","assignees_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/assignees{/user}","branches_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/branches{/branch}","tags_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/tags","blobs_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/git/refs{/sha}","trees_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/statuses/{sha}","languages_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/languages","stargazers_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/stargazers","contributors_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/contributors","subscribers_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/subscribers","subscription_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/subscription","commits_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/commits{/sha}","git_commits_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/git/commits{/sha}","comments_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/comments{/number}","issue_comment_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/issues/comments{/number}","contents_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/contents/{+path}","compare_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/merges","archive_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/downloads","issues_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/issues{/number}","pulls_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/pulls{/number}","milestones_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/milestones{/number}","notifications_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/labels{/name}","releases_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/releases{/id}","deployments_url":"https://api.github.com/repos/TrevorJamesH/core-algorithms/deployments","created_at":"2017-02-06T19:14:18Z","updated_at":"2017-02-06T19:14:20Z","pushed_at":"2017-02-13T16:54:42Z","git_url":"git://github.com/TrevorJamesH/core-algorithms.git","ssh_url":"git@github.com:TrevorJamesH/core-algorithms.git","clone_url":"https://github.com/TrevorJamesH/core-algorithms.git","svn_url":"https://github.com/TrevorJamesH/core-algorithms","homepage":null,"size":49,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TrevorJamesH/core-algorithms/pulls/23"},"html":{"href":"https://github.com/TrevorJamesH/core-algorithms/pull/23"},"issue":{"href":"https://api.github.com/repos/TrevorJamesH/core-algorithms/issues/23"},"comments":{"href":"https://api.github.com/repos/TrevorJamesH/core-algorithms/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/TrevorJamesH/core-algorithms/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/TrevorJamesH/core-algorithms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TrevorJamesH/core-algorithms/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/TrevorJamesH/core-algorithms/statuses/10e32943f8df6a5750d8876986ecf8e531603afb"}}}}
{"actor":{"display_login":"Anasauce"}}