{"action":"created","comment":{"url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/pulls/comments/50847659","id":50847659,"diff_hunk":"@@ -20,7 +31,18 @@ const sum = function sum() {\n // Write a function that returns an array of the specified length\n // with all the elements set to defaultValue\n const newArray = function newArray(length, defaultValue) {\n-\n+  let newArr = [];\n+  if(defaultValue instanceof Array) {\n+    for(let i = 0; i < length; i++) {\n+      newArr[i] = defaultValue[i];\n+    }\n+    return newArr;","path":"lib/diagnostic.js","position":37,"original_position":37,"commit_id":"9afc471641e320048ee2b0875dce6fda9d384620","original_commit_id":"9afc471641e320048ee2b0875dce6fda9d384620","user":{"login":"MattB-GA-Boston","id":3653013,"avatar_url":"https://avatars.githubusercontent.com/u/3653013?v=3","gravatar_id":"","url":"https://api.github.com/users/MattB-GA-Boston","html_url":"https://github.com/MattB-GA-Boston","followers_url":"https://api.github.com/users/MattB-GA-Boston/followers","following_url":"https://api.github.com/users/MattB-GA-Boston/following{/other_user}","gists_url":"https://api.github.com/users/MattB-GA-Boston/gists{/gist_id}","starred_url":"https://api.github.com/users/MattB-GA-Boston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattB-GA-Boston/subscriptions","organizations_url":"https://api.github.com/users/MattB-GA-Boston/orgs","repos_url":"https://api.github.com/users/MattB-GA-Boston/repos","events_url":"https://api.github.com/users/MattB-GA-Boston/events{/privacy}","received_events_url":"https://api.github.com/users/MattB-GA-Boston/received_events","type":"User","site_admin":false},"body":"This doesn't really address what `newArray` is supposed to do - create new array of size `length`, populated with some default value.","created_at":"2016-01-26T15:18:43Z","updated_at":"2016-01-26T15:18:43Z","html_url":"https://github.com/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/pull/54#discussion_r50847659","pull_request_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/pulls/54","_links":{"self":{"href":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/pulls/comments/50847659"},"html":{"href":"https://github.com/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/pull/54#discussion_r50847659"},"pull_request":{"href":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/pulls/54"}}},"pull_request":{"url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/pulls/54","id":57217284,"html_url":"https://github.com/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/pull/54","diff_url":"https://github.com/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/pull/54.diff","patch_url":"https://github.com/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/pull/54.patch","issue_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/issues/54","number":54,"state":"open","locked":false,"title":"Finish diagnostic","user":{"login":"dumplingpuff","id":14882368,"avatar_url":"https://avatars.githubusercontent.com/u/14882368?v=3","gravatar_id":"","url":"https://api.github.com/users/dumplingpuff","html_url":"https://github.com/dumplingpuff","followers_url":"https://api.github.com/users/dumplingpuff/followers","following_url":"https://api.github.com/users/dumplingpuff/following{/other_user}","gists_url":"https://api.github.com/users/dumplingpuff/gists{/gist_id}","starred_url":"https://api.github.com/users/dumplingpuff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dumplingpuff/subscriptions","organizations_url":"https://api.github.com/users/dumplingpuff/orgs","repos_url":"https://api.github.com/users/dumplingpuff/repos","events_url":"https://api.github.com/users/dumplingpuff/events{/privacy}","received_events_url":"https://api.github.com/users/dumplingpuff/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-26T14:30:13Z","updated_at":"2016-01-26T15:18:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f055c8a835dc31d3fb0cd70b8ef3a1bbdcf7cdf2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/pulls/54/commits","review_comments_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/pulls/54/comments","review_comment_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/issues/54/comments","statuses_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/statuses/9afc471641e320048ee2b0875dce6fda9d384620","head":{"label":"dumplingpuff:response","ref":"response","sha":"9afc471641e320048ee2b0875dce6fda9d384620","user":{"login":"dumplingpuff","id":14882368,"avatar_url":"https://avatars.githubusercontent.com/u/14882368?v=3","gravatar_id":"","url":"https://api.github.com/users/dumplingpuff","html_url":"https://github.com/dumplingpuff","followers_url":"https://api.github.com/users/dumplingpuff/followers","following_url":"https://api.github.com/users/dumplingpuff/following{/other_user}","gists_url":"https://api.github.com/users/dumplingpuff/gists{/gist_id}","starred_url":"https://api.github.com/users/dumplingpuff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dumplingpuff/subscriptions","organizations_url":"https://api.github.com/users/dumplingpuff/orgs","repos_url":"https://api.github.com/users/dumplingpuff/repos","events_url":"https://api.github.com/users/dumplingpuff/events{/privacy}","received_events_url":"https://api.github.com/users/dumplingpuff/received_events","type":"User","site_admin":false},"repo":{"id":50432164,"name":"js-functions-ins-and-outs-diagnostic","full_name":"dumplingpuff/js-functions-ins-and-outs-diagnostic","owner":{"login":"dumplingpuff","id":14882368,"avatar_url":"https://avatars.githubusercontent.com/u/14882368?v=3","gravatar_id":"","url":"https://api.github.com/users/dumplingpuff","html_url":"https://github.com/dumplingpuff","followers_url":"https://api.github.com/users/dumplingpuff/followers","following_url":"https://api.github.com/users/dumplingpuff/following{/other_user}","gists_url":"https://api.github.com/users/dumplingpuff/gists{/gist_id}","starred_url":"https://api.github.com/users/dumplingpuff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dumplingpuff/subscriptions","organizations_url":"https://api.github.com/users/dumplingpuff/orgs","repos_url":"https://api.github.com/users/dumplingpuff/repos","events_url":"https://api.github.com/users/dumplingpuff/events{/privacy}","received_events_url":"https://api.github.com/users/dumplingpuff/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dumplingpuff/js-functions-ins-and-outs-diagnostic","description":"Assessment JavaScript Functions - \"Ins & Outs\"","fork":true,"url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic","forks_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/forks","keys_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/teams","hooks_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/hooks","issue_events_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/issues/events{/number}","events_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/events","assignees_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/assignees{/user}","branches_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/branches{/branch}","tags_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/tags","blobs_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/git/refs{/sha}","trees_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/statuses/{sha}","languages_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/languages","stargazers_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/stargazers","contributors_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/contributors","subscribers_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/subscribers","subscription_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/subscription","commits_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/commits{/sha}","git_commits_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/git/commits{/sha}","comments_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/comments{/number}","issue_comment_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/issues/comments{/number}","contents_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/contents/{+path}","compare_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/merges","archive_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/downloads","issues_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/issues{/number}","pulls_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/pulls{/number}","milestones_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/milestones{/number}","notifications_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/labels{/name}","releases_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/releases{/id}","deployments_url":"https://api.github.com/repos/dumplingpuff/js-functions-ins-and-outs-diagnostic/deployments","created_at":"2016-01-26T13:59:49Z","updated_at":"2016-01-26T13:59:50Z","pushed_at":"2016-01-26T14:29:49Z","git_url":"git://github.com/dumplingpuff/js-functions-ins-and-outs-diagnostic.git","ssh_url":"git@github.com:dumplingpuff/js-functions-ins-and-outs-diagnostic.git","clone_url":"https://github.com/dumplingpuff/js-functions-ins-and-outs-diagnostic.git","svn_url":"https://github.com/dumplingpuff/js-functions-ins-and-outs-diagnostic","homepage":null,"size":16,"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":"ga-wdi-boston:master","ref":"master","sha":"52c6b9bf4e375e2f33d40929c57d904d34060e92","user":{"login":"ga-wdi-boston","id":6361298,"avatar_url":"https://avatars.githubusercontent.com/u/6361298?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-wdi-boston","html_url":"https://github.com/ga-wdi-boston","followers_url":"https://api.github.com/users/ga-wdi-boston/followers","following_url":"https://api.github.com/users/ga-wdi-boston/following{/other_user}","gists_url":"https://api.github.com/users/ga-wdi-boston/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-wdi-boston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-wdi-boston/subscriptions","organizations_url":"https://api.github.com/users/ga-wdi-boston/orgs","repos_url":"https://api.github.com/users/ga-wdi-boston/repos","events_url":"https://api.github.com/users/ga-wdi-boston/events{/privacy}","received_events_url":"https://api.github.com/users/ga-wdi-boston/received_events","type":"Organization","site_admin":false},"repo":{"id":43652662,"name":"js-functions-ins-and-outs-diagnostic","full_name":"ga-wdi-boston/js-functions-ins-and-outs-diagnostic","owner":{"login":"ga-wdi-boston","id":6361298,"avatar_url":"https://avatars.githubusercontent.com/u/6361298?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-wdi-boston","html_url":"https://github.com/ga-wdi-boston","followers_url":"https://api.github.com/users/ga-wdi-boston/followers","following_url":"https://api.github.com/users/ga-wdi-boston/following{/other_user}","gists_url":"https://api.github.com/users/ga-wdi-boston/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-wdi-boston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-wdi-boston/subscriptions","organizations_url":"https://api.github.com/users/ga-wdi-boston/orgs","repos_url":"https://api.github.com/users/ga-wdi-boston/repos","events_url":"https://api.github.com/users/ga-wdi-boston/events{/privacy}","received_events_url":"https://api.github.com/users/ga-wdi-boston/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ga-wdi-boston/js-functions-ins-and-outs-diagnostic","description":"Assessment JavaScript Functions - \"Ins & Outs\"","fork":false,"url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic","forks_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/forks","keys_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/teams","hooks_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/hooks","issue_events_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/issues/events{/number}","events_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/events","assignees_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/assignees{/user}","branches_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/branches{/branch}","tags_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/tags","blobs_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/git/refs{/sha}","trees_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/statuses/{sha}","languages_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/languages","stargazers_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/stargazers","contributors_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/contributors","subscribers_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/subscribers","subscription_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/subscription","commits_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/commits{/sha}","git_commits_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/git/commits{/sha}","comments_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/comments{/number}","issue_comment_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/issues/comments{/number}","contents_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/contents/{+path}","compare_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/merges","archive_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/downloads","issues_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/issues{/number}","pulls_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/pulls{/number}","milestones_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/milestones{/number}","notifications_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/labels{/name}","releases_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/releases{/id}","deployments_url":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/deployments","created_at":"2015-10-04T21:02:56Z","updated_at":"2016-01-20T19:42:09Z","pushed_at":"2016-01-26T15:12:43Z","git_url":"git://github.com/ga-wdi-boston/js-functions-ins-and-outs-diagnostic.git","ssh_url":"git@github.com:ga-wdi-boston/js-functions-ins-and-outs-diagnostic.git","clone_url":"https://github.com/ga-wdi-boston/js-functions-ins-and-outs-diagnostic.git","svn_url":"https://github.com/ga-wdi-boston/js-functions-ins-and-outs-diagnostic","homepage":null,"size":56,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":47,"mirror_url":null,"open_issues_count":9,"forks":47,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/pulls/54"},"html":{"href":"https://github.com/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/pull/54"},"issue":{"href":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/issues/54"},"comments":{"href":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/issues/54/comments"},"review_comments":{"href":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/pulls/54/comments"},"review_comment":{"href":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/pulls/54/commits"},"statuses":{"href":"https://api.github.com/repos/ga-wdi-boston/js-functions-ins-and-outs-diagnostic/statuses/9afc471641e320048ee2b0875dce6fda9d384620"}}}}