{"action":"created","comment":{"url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/pulls/comments/187519470","pull_request_review_id":119316946,"id":187519470,"diff_hunk":"@@ -8,15 +8,25 @@ Use `Object.keys()` and `Array.forEach()` to determine which key-value pairs nee\n \n ```js\n const deepClone = obj => {\n-  let clone = Object.assign({}, obj);\n-  Object.keys(clone).forEach(\n-    key => (clone[key] = typeof obj[key] === 'object' ? deepClone(obj[key]) : obj[key])\n-  );\n-  return clone;","path":"snippets/deepClone.md","position":10,"original_position":8,"commit_id":"76c56195b12c852eb130611a8046219a2d98106f","original_commit_id":"78e3890e982358d965a21ecbd6fc2a860898d10e","user":{"login":"skatcat31","id":13894696,"avatar_url":"https://avatars1.githubusercontent.com/u/13894696?v=4","gravatar_id":"","url":"https://api.github.com/users/skatcat31","html_url":"https://github.com/skatcat31","followers_url":"https://api.github.com/users/skatcat31/followers","following_url":"https://api.github.com/users/skatcat31/following{/other_user}","gists_url":"https://api.github.com/users/skatcat31/gists{/gist_id}","starred_url":"https://api.github.com/users/skatcat31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skatcat31/subscriptions","organizations_url":"https://api.github.com/users/skatcat31/orgs","repos_url":"https://api.github.com/users/skatcat31/repos","events_url":"https://api.github.com/users/skatcat31/events{/privacy}","received_events_url":"https://api.github.com/users/skatcat31/received_events","type":"User","site_admin":false},"body":"From the contribution guidelines:\r\n>Always use soft tabs (2 spaces), never hard tabs.","created_at":"2018-05-11T04:46:22Z","updated_at":"2018-05-11T04:46:26Z","html_url":"https://github.com/Chalarangelo/30-seconds-of-code/pull/663#discussion_r187519470","pull_request_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/pulls/663","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/pulls/comments/187519470"},"html":{"href":"https://github.com/Chalarangelo/30-seconds-of-code/pull/663#discussion_r187519470"},"pull_request":{"href":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/pulls/663"}},"in_reply_to_id":187188662},"pull_request":{"url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/pulls/663","id":187011569,"html_url":"https://github.com/Chalarangelo/30-seconds-of-code/pull/663","diff_url":"https://github.com/Chalarangelo/30-seconds-of-code/pull/663.diff","patch_url":"https://github.com/Chalarangelo/30-seconds-of-code/pull/663.patch","issue_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/issues/663","number":663,"state":"open","locked":false,"title":"[FIX: #658] Fixed problems with array values in deepClone snippet","user":{"login":"tcmal","id":4183876,"avatar_url":"https://avatars3.githubusercontent.com/u/4183876?v=4","gravatar_id":"","url":"https://api.github.com/users/tcmal","html_url":"https://github.com/tcmal","followers_url":"https://api.github.com/users/tcmal/followers","following_url":"https://api.github.com/users/tcmal/following{/other_user}","gists_url":"https://api.github.com/users/tcmal/gists{/gist_id}","starred_url":"https://api.github.com/users/tcmal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcmal/subscriptions","organizations_url":"https://api.github.com/users/tcmal/orgs","repos_url":"https://api.github.com/users/tcmal/repos","events_url":"https://api.github.com/users/tcmal/events{/privacy}","received_events_url":"https://api.github.com/users/tcmal/received_events","type":"User","site_admin":false},"body":"## Description\r\n\r\nWould previously create an object with indices as keys. Now properly clones as array.\r\n\r\n**Resolves** #658\r\n\r\n## What does your PR belong to?\r\n- [ ] Website\r\n- [X] Snippets\r\n- [ ] General / Things regarding the repository (like CI Integration)\r\n- [ ] Tests\r\n\r\n## Types of changes\r\n- [X] Bug fix (non-breaking change which fixes an issue)\r\n- [ ] Enhancement (non-breaking improvement of a snippet)\r\n- [ ] New feature (non-breaking change which adds functionality)\r\n- [ ] Breaking change (fix or feature that would cause existing functionality to change)\r\n\r\n## Checklist:\r\n<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->\r\n- [X] My code follows the code style of this project.\r\n- [ ] My change requires a change to the documentation.\r\n- [ ] I have updated the documentation accordingly.\r\n- [X] I have checked that the changes are working properly\r\n- [X] I have checked that there isn't any PR doing the same\r\n- [X] I have read the **CONTRIBUTING** document.\r\n","created_at":"2018-05-09T19:03:53Z","updated_at":"2018-05-11T04:46:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"97658a31f8a48e6bac1228da11f76011a5ebef68","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/pulls/663/commits","review_comments_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/pulls/663/comments","review_comment_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/issues/663/comments","statuses_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/statuses/76c56195b12c852eb130611a8046219a2d98106f","head":{"label":"tcmal:master","ref":"master","sha":"76c56195b12c852eb130611a8046219a2d98106f","user":{"login":"tcmal","id":4183876,"avatar_url":"https://avatars3.githubusercontent.com/u/4183876?v=4","gravatar_id":"","url":"https://api.github.com/users/tcmal","html_url":"https://github.com/tcmal","followers_url":"https://api.github.com/users/tcmal/followers","following_url":"https://api.github.com/users/tcmal/following{/other_user}","gists_url":"https://api.github.com/users/tcmal/gists{/gist_id}","starred_url":"https://api.github.com/users/tcmal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcmal/subscriptions","organizations_url":"https://api.github.com/users/tcmal/orgs","repos_url":"https://api.github.com/users/tcmal/repos","events_url":"https://api.github.com/users/tcmal/events{/privacy}","received_events_url":"https://api.github.com/users/tcmal/received_events","type":"User","site_admin":false},"repo":{"id":119428573,"name":"30-seconds-of-code","full_name":"tcmal/30-seconds-of-code","owner":{"login":"tcmal","id":4183876,"avatar_url":"https://avatars3.githubusercontent.com/u/4183876?v=4","gravatar_id":"","url":"https://api.github.com/users/tcmal","html_url":"https://github.com/tcmal","followers_url":"https://api.github.com/users/tcmal/followers","following_url":"https://api.github.com/users/tcmal/following{/other_user}","gists_url":"https://api.github.com/users/tcmal/gists{/gist_id}","starred_url":"https://api.github.com/users/tcmal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcmal/subscriptions","organizations_url":"https://api.github.com/users/tcmal/orgs","repos_url":"https://api.github.com/users/tcmal/repos","events_url":"https://api.github.com/users/tcmal/events{/privacy}","received_events_url":"https://api.github.com/users/tcmal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tcmal/30-seconds-of-code","description":"Curated collection of useful Javascript snippets that you can understand in 30 seconds or less.","fork":true,"url":"https://api.github.com/repos/tcmal/30-seconds-of-code","forks_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/forks","keys_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/teams","hooks_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/hooks","issue_events_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/issues/events{/number}","events_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/events","assignees_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/assignees{/user}","branches_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/branches{/branch}","tags_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/tags","blobs_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/git/refs{/sha}","trees_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/statuses/{sha}","languages_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/languages","stargazers_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/stargazers","contributors_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/contributors","subscribers_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/subscribers","subscription_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/subscription","commits_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/commits{/sha}","git_commits_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/git/commits{/sha}","comments_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/comments{/number}","issue_comment_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/issues/comments{/number}","contents_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/contents/{+path}","compare_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/merges","archive_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/downloads","issues_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/issues{/number}","pulls_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/pulls{/number}","milestones_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/milestones{/number}","notifications_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/labels{/name}","releases_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/releases{/id}","deployments_url":"https://api.github.com/repos/tcmal/30-seconds-of-code/deployments","created_at":"2018-01-29T19:13:33Z","updated_at":"2018-05-10T18:23:04Z","pushed_at":"2018-05-10T18:23:00Z","git_url":"git://github.com/tcmal/30-seconds-of-code.git","ssh_url":"git@github.com:tcmal/30-seconds-of-code.git","clone_url":"https://github.com/tcmal/30-seconds-of-code.git","svn_url":"https://github.com/tcmal/30-seconds-of-code","homepage":"https://30secondsofcode.org/","size":7971,"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":{"key":"cc0-1.0","name":"Creative Commons Zero v1.0 Universal","spdx_id":"CC0-1.0","url":"https://api.github.com/licenses/cc0-1.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Chalarangelo:master","ref":"master","sha":"fd54ca530e0a587dae0c1dd16d71a572397426f1","user":{"login":"Chalarangelo","id":8281875,"avatar_url":"https://avatars2.githubusercontent.com/u/8281875?v=4","gravatar_id":"","url":"https://api.github.com/users/Chalarangelo","html_url":"https://github.com/Chalarangelo","followers_url":"https://api.github.com/users/Chalarangelo/followers","following_url":"https://api.github.com/users/Chalarangelo/following{/other_user}","gists_url":"https://api.github.com/users/Chalarangelo/gists{/gist_id}","starred_url":"https://api.github.com/users/Chalarangelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chalarangelo/subscriptions","organizations_url":"https://api.github.com/users/Chalarangelo/orgs","repos_url":"https://api.github.com/users/Chalarangelo/repos","events_url":"https://api.github.com/users/Chalarangelo/events{/privacy}","received_events_url":"https://api.github.com/users/Chalarangelo/received_events","type":"User","site_admin":false},"repo":{"id":112507086,"name":"30-seconds-of-code","full_name":"Chalarangelo/30-seconds-of-code","owner":{"login":"Chalarangelo","id":8281875,"avatar_url":"https://avatars2.githubusercontent.com/u/8281875?v=4","gravatar_id":"","url":"https://api.github.com/users/Chalarangelo","html_url":"https://github.com/Chalarangelo","followers_url":"https://api.github.com/users/Chalarangelo/followers","following_url":"https://api.github.com/users/Chalarangelo/following{/other_user}","gists_url":"https://api.github.com/users/Chalarangelo/gists{/gist_id}","starred_url":"https://api.github.com/users/Chalarangelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chalarangelo/subscriptions","organizations_url":"https://api.github.com/users/Chalarangelo/orgs","repos_url":"https://api.github.com/users/Chalarangelo/repos","events_url":"https://api.github.com/users/Chalarangelo/events{/privacy}","received_events_url":"https://api.github.com/users/Chalarangelo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Chalarangelo/30-seconds-of-code","description":"Curated collection of useful Javascript snippets that you can understand in 30 seconds or less.","fork":false,"url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code","forks_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/forks","keys_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/teams","hooks_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/hooks","issue_events_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/issues/events{/number}","events_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/events","assignees_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/assignees{/user}","branches_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/branches{/branch}","tags_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/tags","blobs_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/git/refs{/sha}","trees_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/statuses/{sha}","languages_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/languages","stargazers_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/stargazers","contributors_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/contributors","subscribers_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/subscribers","subscription_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/subscription","commits_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/commits{/sha}","git_commits_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/git/commits{/sha}","comments_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/comments{/number}","issue_comment_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/issues/comments{/number}","contents_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/contents/{+path}","compare_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/merges","archive_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/downloads","issues_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/issues{/number}","pulls_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/pulls{/number}","milestones_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/milestones{/number}","notifications_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/labels{/name}","releases_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/releases{/id}","deployments_url":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/deployments","created_at":"2017-11-29T17:35:03Z","updated_at":"2018-05-11T03:11:28Z","pushed_at":"2018-05-10T21:06:54Z","git_url":"git://github.com/Chalarangelo/30-seconds-of-code.git","ssh_url":"git@github.com:Chalarangelo/30-seconds-of-code.git","clone_url":"https://github.com/Chalarangelo/30-seconds-of-code.git","svn_url":"https://github.com/Chalarangelo/30-seconds-of-code","homepage":"https://30secondsofcode.org/","size":7984,"stargazers_count":19963,"watchers_count":19963,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2009,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"cc0-1.0","name":"Creative Commons Zero v1.0 Universal","spdx_id":"CC0-1.0","url":"https://api.github.com/licenses/cc0-1.0"},"forks":2009,"open_issues":3,"watchers":19963,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/pulls/663"},"html":{"href":"https://github.com/Chalarangelo/30-seconds-of-code/pull/663"},"issue":{"href":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/issues/663"},"comments":{"href":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/issues/663/comments"},"review_comments":{"href":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/pulls/663/comments"},"review_comment":{"href":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/pulls/663/commits"},"statuses":{"href":"https://api.github.com/repos/Chalarangelo/30-seconds-of-code/statuses/76c56195b12c852eb130611a8046219a2d98106f"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"skatcat31"}}