{"action":"created","comment":{"url":"https://api.github.com/repos/exercism/x-common/pulls/comments/61676063","id":61676063,"diff_hunk":"@@ -0,0 +1,19 @@\n+The challenge is to write a function that accepts an arbitrarily-deep nested Array-like structure and returns a flattened structure with any null values removed without using the reduce method.\n+\n+For Example\n+\n+flattener.flatten([0, 2, [[2, 3], 8, 100, null, [[null]]], -2]);\n+\n+returns [0, 2, 2, 3, 8, 100, -2]\n+\n+\n+flattener.clear()\n+\n+returns []\n+\n+Tips\n+\n+* Define clear first before the function flatten\n+* Think about closures and know what you have access to within a function\n+\n+Have Fun, very popular interview question","path":"flatten-array.md","position":19,"original_position":19,"commit_id":"0af1fd3f93ba79ad12f87fa28d91dff3a6509535","original_commit_id":"0af1fd3f93ba79ad12f87fa28d91dff3a6509535","user":{"login":"kytrinyx","id":276834,"avatar_url":"https://avatars.githubusercontent.com/u/276834?v=3","gravatar_id":"","url":"https://api.github.com/users/kytrinyx","html_url":"https://github.com/kytrinyx","followers_url":"https://api.github.com/users/kytrinyx/followers","following_url":"https://api.github.com/users/kytrinyx/following{/other_user}","gists_url":"https://api.github.com/users/kytrinyx/gists{/gist_id}","starred_url":"https://api.github.com/users/kytrinyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kytrinyx/subscriptions","organizations_url":"https://api.github.com/users/kytrinyx/orgs","repos_url":"https://api.github.com/users/kytrinyx/repos","events_url":"https://api.github.com/users/kytrinyx/events{/privacy}","received_events_url":"https://api.github.com/users/kytrinyx/received_events","type":"User","site_admin":false},"body":"Let's put this in source instead of \"wolfram definition\", but keep the source url pointing to the wolfram definition. The inspiration for this sounds like it was the interview question, rather than finding the definition on Wolfram.","created_at":"2016-04-30T22:00:45Z","updated_at":"2016-04-30T22:00:45Z","html_url":"https://github.com/exercism/x-common/pull/242#discussion_r61676063","pull_request_url":"https://api.github.com/repos/exercism/x-common/pulls/242","_links":{"self":{"href":"https://api.github.com/repos/exercism/x-common/pulls/comments/61676063"},"html":{"href":"https://github.com/exercism/x-common/pull/242#discussion_r61676063"},"pull_request":{"href":"https://api.github.com/repos/exercism/x-common/pulls/242"}}},"pull_request":{"url":"https://api.github.com/repos/exercism/x-common/pulls/242","id":68478613,"html_url":"https://github.com/exercism/x-common/pull/242","diff_url":"https://github.com/exercism/x-common/pull/242.diff","patch_url":"https://github.com/exercism/x-common/pull/242.patch","issue_url":"https://api.github.com/repos/exercism/x-common/issues/242","number":242,"state":"open","locked":false,"title":"added metadata for flatten-array question","user":{"login":"cloudleo","id":13070949,"avatar_url":"https://avatars.githubusercontent.com/u/13070949?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudleo","html_url":"https://github.com/cloudleo","followers_url":"https://api.github.com/users/cloudleo/followers","following_url":"https://api.github.com/users/cloudleo/following{/other_user}","gists_url":"https://api.github.com/users/cloudleo/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudleo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudleo/subscriptions","organizations_url":"https://api.github.com/users/cloudleo/orgs","repos_url":"https://api.github.com/users/cloudleo/repos","events_url":"https://api.github.com/users/cloudleo/events{/privacy}","received_events_url":"https://api.github.com/users/cloudleo/received_events","type":"User","site_admin":false},"body":"first time adding metadata, would like people to review it and let me know if any problem exist","created_at":"2016-04-30T20:51:22Z","updated_at":"2016-04-30T22:00:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d12330d5d926c5c8fb430a78f302b5ba81fa6abb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/exercism/x-common/pulls/242/commits","review_comments_url":"https://api.github.com/repos/exercism/x-common/pulls/242/comments","review_comment_url":"https://api.github.com/repos/exercism/x-common/pulls/comments{/number}","comments_url":"https://api.github.com/repos/exercism/x-common/issues/242/comments","statuses_url":"https://api.github.com/repos/exercism/x-common/statuses/0af1fd3f93ba79ad12f87fa28d91dff3a6509535","head":{"label":"cloudleo:master","ref":"master","sha":"0af1fd3f93ba79ad12f87fa28d91dff3a6509535","user":{"login":"cloudleo","id":13070949,"avatar_url":"https://avatars.githubusercontent.com/u/13070949?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudleo","html_url":"https://github.com/cloudleo","followers_url":"https://api.github.com/users/cloudleo/followers","following_url":"https://api.github.com/users/cloudleo/following{/other_user}","gists_url":"https://api.github.com/users/cloudleo/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudleo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudleo/subscriptions","organizations_url":"https://api.github.com/users/cloudleo/orgs","repos_url":"https://api.github.com/users/cloudleo/repos","events_url":"https://api.github.com/users/cloudleo/events{/privacy}","received_events_url":"https://api.github.com/users/cloudleo/received_events","type":"User","site_admin":false},"repo":{"id":57456149,"name":"x-common","full_name":"cloudleo/x-common","owner":{"login":"cloudleo","id":13070949,"avatar_url":"https://avatars.githubusercontent.com/u/13070949?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudleo","html_url":"https://github.com/cloudleo","followers_url":"https://api.github.com/users/cloudleo/followers","following_url":"https://api.github.com/users/cloudleo/following{/other_user}","gists_url":"https://api.github.com/users/cloudleo/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudleo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudleo/subscriptions","organizations_url":"https://api.github.com/users/cloudleo/orgs","repos_url":"https://api.github.com/users/cloudleo/repos","events_url":"https://api.github.com/users/cloudleo/events{/privacy}","received_events_url":"https://api.github.com/users/cloudleo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cloudleo/x-common","description":"Shared metadata for exercism exercises.","fork":true,"url":"https://api.github.com/repos/cloudleo/x-common","forks_url":"https://api.github.com/repos/cloudleo/x-common/forks","keys_url":"https://api.github.com/repos/cloudleo/x-common/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudleo/x-common/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudleo/x-common/teams","hooks_url":"https://api.github.com/repos/cloudleo/x-common/hooks","issue_events_url":"https://api.github.com/repos/cloudleo/x-common/issues/events{/number}","events_url":"https://api.github.com/repos/cloudleo/x-common/events","assignees_url":"https://api.github.com/repos/cloudleo/x-common/assignees{/user}","branches_url":"https://api.github.com/repos/cloudleo/x-common/branches{/branch}","tags_url":"https://api.github.com/repos/cloudleo/x-common/tags","blobs_url":"https://api.github.com/repos/cloudleo/x-common/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudleo/x-common/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudleo/x-common/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudleo/x-common/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudleo/x-common/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudleo/x-common/languages","stargazers_url":"https://api.github.com/repos/cloudleo/x-common/stargazers","contributors_url":"https://api.github.com/repos/cloudleo/x-common/contributors","subscribers_url":"https://api.github.com/repos/cloudleo/x-common/subscribers","subscription_url":"https://api.github.com/repos/cloudleo/x-common/subscription","commits_url":"https://api.github.com/repos/cloudleo/x-common/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudleo/x-common/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudleo/x-common/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudleo/x-common/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudleo/x-common/contents/{+path}","compare_url":"https://api.github.com/repos/cloudleo/x-common/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudleo/x-common/merges","archive_url":"https://api.github.com/repos/cloudleo/x-common/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudleo/x-common/downloads","issues_url":"https://api.github.com/repos/cloudleo/x-common/issues{/number}","pulls_url":"https://api.github.com/repos/cloudleo/x-common/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudleo/x-common/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudleo/x-common/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudleo/x-common/labels{/name}","releases_url":"https://api.github.com/repos/cloudleo/x-common/releases{/id}","deployments_url":"https://api.github.com/repos/cloudleo/x-common/deployments","created_at":"2016-04-30T18:28:05Z","updated_at":"2016-04-30T18:28:06Z","pushed_at":"2016-04-30T20:47:54Z","git_url":"git://github.com/cloudleo/x-common.git","ssh_url":"git@github.com:cloudleo/x-common.git","clone_url":"https://github.com/cloudleo/x-common.git","svn_url":"https://github.com/cloudleo/x-common","homepage":null,"size":466,"stargazers_count":0,"watchers_count":0,"language":"Shell","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":"exercism:master","ref":"master","sha":"16cf7211b9f09dfb6ada3e94f94d5334d27c4c00","user":{"login":"exercism","id":5624255,"avatar_url":"https://avatars.githubusercontent.com/u/5624255?v=3","gravatar_id":"","url":"https://api.github.com/users/exercism","html_url":"https://github.com/exercism","followers_url":"https://api.github.com/users/exercism/followers","following_url":"https://api.github.com/users/exercism/following{/other_user}","gists_url":"https://api.github.com/users/exercism/gists{/gist_id}","starred_url":"https://api.github.com/users/exercism/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exercism/subscriptions","organizations_url":"https://api.github.com/users/exercism/orgs","repos_url":"https://api.github.com/users/exercism/repos","events_url":"https://api.github.com/users/exercism/events{/privacy}","received_events_url":"https://api.github.com/users/exercism/received_events","type":"Organization","site_admin":false},"repo":{"id":17259886,"name":"x-common","full_name":"exercism/x-common","owner":{"login":"exercism","id":5624255,"avatar_url":"https://avatars.githubusercontent.com/u/5624255?v=3","gravatar_id":"","url":"https://api.github.com/users/exercism","html_url":"https://github.com/exercism","followers_url":"https://api.github.com/users/exercism/followers","following_url":"https://api.github.com/users/exercism/following{/other_user}","gists_url":"https://api.github.com/users/exercism/gists{/gist_id}","starred_url":"https://api.github.com/users/exercism/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exercism/subscriptions","organizations_url":"https://api.github.com/users/exercism/orgs","repos_url":"https://api.github.com/users/exercism/repos","events_url":"https://api.github.com/users/exercism/events{/privacy}","received_events_url":"https://api.github.com/users/exercism/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/exercism/x-common","description":"Shared metadata for exercism exercises.","fork":false,"url":"https://api.github.com/repos/exercism/x-common","forks_url":"https://api.github.com/repos/exercism/x-common/forks","keys_url":"https://api.github.com/repos/exercism/x-common/keys{/key_id}","collaborators_url":"https://api.github.com/repos/exercism/x-common/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/exercism/x-common/teams","hooks_url":"https://api.github.com/repos/exercism/x-common/hooks","issue_events_url":"https://api.github.com/repos/exercism/x-common/issues/events{/number}","events_url":"https://api.github.com/repos/exercism/x-common/events","assignees_url":"https://api.github.com/repos/exercism/x-common/assignees{/user}","branches_url":"https://api.github.com/repos/exercism/x-common/branches{/branch}","tags_url":"https://api.github.com/repos/exercism/x-common/tags","blobs_url":"https://api.github.com/repos/exercism/x-common/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/exercism/x-common/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/exercism/x-common/git/refs{/sha}","trees_url":"https://api.github.com/repos/exercism/x-common/git/trees{/sha}","statuses_url":"https://api.github.com/repos/exercism/x-common/statuses/{sha}","languages_url":"https://api.github.com/repos/exercism/x-common/languages","stargazers_url":"https://api.github.com/repos/exercism/x-common/stargazers","contributors_url":"https://api.github.com/repos/exercism/x-common/contributors","subscribers_url":"https://api.github.com/repos/exercism/x-common/subscribers","subscription_url":"https://api.github.com/repos/exercism/x-common/subscription","commits_url":"https://api.github.com/repos/exercism/x-common/commits{/sha}","git_commits_url":"https://api.github.com/repos/exercism/x-common/git/commits{/sha}","comments_url":"https://api.github.com/repos/exercism/x-common/comments{/number}","issue_comment_url":"https://api.github.com/repos/exercism/x-common/issues/comments{/number}","contents_url":"https://api.github.com/repos/exercism/x-common/contents/{+path}","compare_url":"https://api.github.com/repos/exercism/x-common/compare/{base}...{head}","merges_url":"https://api.github.com/repos/exercism/x-common/merges","archive_url":"https://api.github.com/repos/exercism/x-common/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/exercism/x-common/downloads","issues_url":"https://api.github.com/repos/exercism/x-common/issues{/number}","pulls_url":"https://api.github.com/repos/exercism/x-common/pulls{/number}","milestones_url":"https://api.github.com/repos/exercism/x-common/milestones{/number}","notifications_url":"https://api.github.com/repos/exercism/x-common/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/exercism/x-common/labels{/name}","releases_url":"https://api.github.com/repos/exercism/x-common/releases{/id}","deployments_url":"https://api.github.com/repos/exercism/x-common/deployments","created_at":"2014-02-27T18:40:48Z","updated_at":"2016-04-25T21:49:49Z","pushed_at":"2016-04-30T20:51:22Z","git_url":"git://github.com/exercism/x-common.git","ssh_url":"git@github.com:exercism/x-common.git","clone_url":"https://github.com/exercism/x-common.git","svn_url":"https://github.com/exercism/x-common","homepage":null,"size":578,"stargazers_count":49,"watchers_count":49,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":89,"mirror_url":null,"open_issues_count":48,"forks":89,"open_issues":48,"watchers":49,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/exercism/x-common/pulls/242"},"html":{"href":"https://github.com/exercism/x-common/pull/242"},"issue":{"href":"https://api.github.com/repos/exercism/x-common/issues/242"},"comments":{"href":"https://api.github.com/repos/exercism/x-common/issues/242/comments"},"review_comments":{"href":"https://api.github.com/repos/exercism/x-common/pulls/242/comments"},"review_comment":{"href":"https://api.github.com/repos/exercism/x-common/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/exercism/x-common/pulls/242/commits"},"statuses":{"href":"https://api.github.com/repos/exercism/x-common/statuses/0af1fd3f93ba79ad12f87fa28d91dff3a6509535"}}}}