{"action":"created","comment":{"url":"https://api.github.com/repos/LuisRBarreras/array-extensions/pulls/comments/89391331","pull_request_review_id":9937171,"id":89391331,"diff_hunk":"@@ -0,0 +1,44 @@\n+(function (Array) {\n+\tconst EACH_ERROR = 'Function Each already exist';\n+\tconst WHERE_ERROR = 'Function Where already exist';\n+\n+\tvar extensions = {\n+\t\t'each': { method: each, error: EACH_ERROR },\n+\t\t'where': { method: where, error:WHERE_ERROR}\n+\t};\n+\n+\tfunction each(callback) {\n+\t\tvar length = this.length;\n+\t\tvar index = 0;\n+\n+\t\twhile (index < length) {\n+\t\t\tcallback.call(null, this[index], index);\n+\t\t\tindex++;\n+\t\t}\n+\t}\n+\n+\tfunction where(callback) {\n+\t\tvar length = this.length;\n+\t\tvar index = 0;\n+\t\tvar newArray = [];\n+\n+\t\twhile (index < length) {\n+\t\t\tlet response = callback.call(null, this[index]);\n+\t\t\tif (response === true) {\n+\t\t\t\tnewArray.push(this[index])\n+\t\t\t}\n+\t\t\tindex++;\n+\t\t}\n+\t\treturn newArray;\n+\t}\n+\n+\tfor(let key in extensions) {","path":"dist/array_extensions.js","position":35,"original_position":35,"commit_id":"98ab6376081f51d73771bd408717734aae7996b3","original_commit_id":"98ab6376081f51d73771bd408717734aae7996b3","user":{"login":"ryanez","id":108418,"avatar_url":"https://avatars.githubusercontent.com/u/108418?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanez","html_url":"https://github.com/ryanez","followers_url":"https://api.github.com/users/ryanez/followers","following_url":"https://api.github.com/users/ryanez/following{/other_user}","gists_url":"https://api.github.com/users/ryanez/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanez/subscriptions","organizations_url":"https://api.github.com/users/ryanez/orgs","repos_url":"https://api.github.com/users/ryanez/repos","events_url":"https://api.github.com/users/ryanez/events{/privacy}","received_events_url":"https://api.github.com/users/ryanez/received_events","type":"User","site_admin":false},"body":"Or probably the `extensions` map might be avoided and just have an array with all the extension methods, then you could create and throw just the message you need.","created_at":"2016-11-23T20:09:05Z","updated_at":"2016-11-23T20:11:20Z","html_url":"https://github.com/LuisRBarreras/array-extensions/pull/2#discussion_r89391331","pull_request_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/LuisRBarreras/array-extensions/pulls/comments/89391331"},"html":{"href":"https://github.com/LuisRBarreras/array-extensions/pull/2#discussion_r89391331"},"pull_request":{"href":"https://api.github.com/repos/LuisRBarreras/array-extensions/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/LuisRBarreras/array-extensions/pulls/2","id":94921142,"html_url":"https://github.com/LuisRBarreras/array-extensions/pull/2","diff_url":"https://github.com/LuisRBarreras/array-extensions/pull/2.diff","patch_url":"https://github.com/LuisRBarreras/array-extensions/pull/2.patch","issue_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/issues/2","number":2,"state":"open","locked":false,"title":"Feature where[WAIT TO MERGE PR#1 Each function]","user":{"login":"LuisRBarreras","id":5649796,"avatar_url":"https://avatars.githubusercontent.com/u/5649796?v=3","gravatar_id":"","url":"https://api.github.com/users/LuisRBarreras","html_url":"https://github.com/LuisRBarreras","followers_url":"https://api.github.com/users/LuisRBarreras/followers","following_url":"https://api.github.com/users/LuisRBarreras/following{/other_user}","gists_url":"https://api.github.com/users/LuisRBarreras/gists{/gist_id}","starred_url":"https://api.github.com/users/LuisRBarreras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LuisRBarreras/subscriptions","organizations_url":"https://api.github.com/users/LuisRBarreras/orgs","repos_url":"https://api.github.com/users/LuisRBarreras/repos","events_url":"https://api.github.com/users/LuisRBarreras/events{/privacy}","received_events_url":"https://api.github.com/users/LuisRBarreras/received_events","type":"User","site_admin":false},"body":"Create Where functionality and test\r\nRefactor array_exrensions.js to extend Array.prototype\r\nCreate file .gitignore\r\n","created_at":"2016-11-22T23:43:35Z","updated_at":"2016-11-23T20:11:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2bd487b63604d583430fcf77789e4bac7433cd7d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/pulls/2/commits","review_comments_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/pulls/2/comments","review_comment_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/issues/2/comments","statuses_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/statuses/98ab6376081f51d73771bd408717734aae7996b3","head":{"label":"LuisRBarreras:feature-where","ref":"feature-where","sha":"98ab6376081f51d73771bd408717734aae7996b3","user":{"login":"LuisRBarreras","id":5649796,"avatar_url":"https://avatars.githubusercontent.com/u/5649796?v=3","gravatar_id":"","url":"https://api.github.com/users/LuisRBarreras","html_url":"https://github.com/LuisRBarreras","followers_url":"https://api.github.com/users/LuisRBarreras/followers","following_url":"https://api.github.com/users/LuisRBarreras/following{/other_user}","gists_url":"https://api.github.com/users/LuisRBarreras/gists{/gist_id}","starred_url":"https://api.github.com/users/LuisRBarreras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LuisRBarreras/subscriptions","organizations_url":"https://api.github.com/users/LuisRBarreras/orgs","repos_url":"https://api.github.com/users/LuisRBarreras/repos","events_url":"https://api.github.com/users/LuisRBarreras/events{/privacy}","received_events_url":"https://api.github.com/users/LuisRBarreras/received_events","type":"User","site_admin":false},"repo":{"id":74498379,"name":"array-extensions","full_name":"LuisRBarreras/array-extensions","owner":{"login":"LuisRBarreras","id":5649796,"avatar_url":"https://avatars.githubusercontent.com/u/5649796?v=3","gravatar_id":"","url":"https://api.github.com/users/LuisRBarreras","html_url":"https://github.com/LuisRBarreras","followers_url":"https://api.github.com/users/LuisRBarreras/followers","following_url":"https://api.github.com/users/LuisRBarreras/following{/other_user}","gists_url":"https://api.github.com/users/LuisRBarreras/gists{/gist_id}","starred_url":"https://api.github.com/users/LuisRBarreras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LuisRBarreras/subscriptions","organizations_url":"https://api.github.com/users/LuisRBarreras/orgs","repos_url":"https://api.github.com/users/LuisRBarreras/repos","events_url":"https://api.github.com/users/LuisRBarreras/events{/privacy}","received_events_url":"https://api.github.com/users/LuisRBarreras/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LuisRBarreras/array-extensions","description":"Exercise to Extend Array prototype","fork":false,"url":"https://api.github.com/repos/LuisRBarreras/array-extensions","forks_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/forks","keys_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/teams","hooks_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/hooks","issue_events_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/issues/events{/number}","events_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/events","assignees_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/assignees{/user}","branches_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/branches{/branch}","tags_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/tags","blobs_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/git/refs{/sha}","trees_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/statuses/{sha}","languages_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/languages","stargazers_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/stargazers","contributors_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/contributors","subscribers_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/subscribers","subscription_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/subscription","commits_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/commits{/sha}","git_commits_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/git/commits{/sha}","comments_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/comments{/number}","issue_comment_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/issues/comments{/number}","contents_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/contents/{+path}","compare_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/merges","archive_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/downloads","issues_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/issues{/number}","pulls_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/pulls{/number}","milestones_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/milestones{/number}","notifications_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/labels{/name}","releases_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/releases{/id}","deployments_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/deployments","created_at":"2016-11-22T17:43:14Z","updated_at":"2016-11-23T20:00:18Z","pushed_at":"2016-11-23T20:00:17Z","git_url":"git://github.com/LuisRBarreras/array-extensions.git","ssh_url":"git@github.com:LuisRBarreras/array-extensions.git","clone_url":"https://github.com/LuisRBarreras/array-extensions.git","svn_url":"https://github.com/LuisRBarreras/array-extensions","homepage":null,"size":24,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"LuisRBarreras:master","ref":"master","sha":"ae4dd96a73bff5e8a241013a41e0750f451f4357","user":{"login":"LuisRBarreras","id":5649796,"avatar_url":"https://avatars.githubusercontent.com/u/5649796?v=3","gravatar_id":"","url":"https://api.github.com/users/LuisRBarreras","html_url":"https://github.com/LuisRBarreras","followers_url":"https://api.github.com/users/LuisRBarreras/followers","following_url":"https://api.github.com/users/LuisRBarreras/following{/other_user}","gists_url":"https://api.github.com/users/LuisRBarreras/gists{/gist_id}","starred_url":"https://api.github.com/users/LuisRBarreras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LuisRBarreras/subscriptions","organizations_url":"https://api.github.com/users/LuisRBarreras/orgs","repos_url":"https://api.github.com/users/LuisRBarreras/repos","events_url":"https://api.github.com/users/LuisRBarreras/events{/privacy}","received_events_url":"https://api.github.com/users/LuisRBarreras/received_events","type":"User","site_admin":false},"repo":{"id":74498379,"name":"array-extensions","full_name":"LuisRBarreras/array-extensions","owner":{"login":"LuisRBarreras","id":5649796,"avatar_url":"https://avatars.githubusercontent.com/u/5649796?v=3","gravatar_id":"","url":"https://api.github.com/users/LuisRBarreras","html_url":"https://github.com/LuisRBarreras","followers_url":"https://api.github.com/users/LuisRBarreras/followers","following_url":"https://api.github.com/users/LuisRBarreras/following{/other_user}","gists_url":"https://api.github.com/users/LuisRBarreras/gists{/gist_id}","starred_url":"https://api.github.com/users/LuisRBarreras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LuisRBarreras/subscriptions","organizations_url":"https://api.github.com/users/LuisRBarreras/orgs","repos_url":"https://api.github.com/users/LuisRBarreras/repos","events_url":"https://api.github.com/users/LuisRBarreras/events{/privacy}","received_events_url":"https://api.github.com/users/LuisRBarreras/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LuisRBarreras/array-extensions","description":"Exercise to Extend Array prototype","fork":false,"url":"https://api.github.com/repos/LuisRBarreras/array-extensions","forks_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/forks","keys_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/teams","hooks_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/hooks","issue_events_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/issues/events{/number}","events_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/events","assignees_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/assignees{/user}","branches_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/branches{/branch}","tags_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/tags","blobs_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/git/refs{/sha}","trees_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/statuses/{sha}","languages_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/languages","stargazers_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/stargazers","contributors_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/contributors","subscribers_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/subscribers","subscription_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/subscription","commits_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/commits{/sha}","git_commits_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/git/commits{/sha}","comments_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/comments{/number}","issue_comment_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/issues/comments{/number}","contents_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/contents/{+path}","compare_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/merges","archive_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/downloads","issues_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/issues{/number}","pulls_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/pulls{/number}","milestones_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/milestones{/number}","notifications_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/labels{/name}","releases_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/releases{/id}","deployments_url":"https://api.github.com/repos/LuisRBarreras/array-extensions/deployments","created_at":"2016-11-22T17:43:14Z","updated_at":"2016-11-23T20:00:18Z","pushed_at":"2016-11-23T20:00:17Z","git_url":"git://github.com/LuisRBarreras/array-extensions.git","ssh_url":"git@github.com:LuisRBarreras/array-extensions.git","clone_url":"https://github.com/LuisRBarreras/array-extensions.git","svn_url":"https://github.com/LuisRBarreras/array-extensions","homepage":null,"size":24,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LuisRBarreras/array-extensions/pulls/2"},"html":{"href":"https://github.com/LuisRBarreras/array-extensions/pull/2"},"issue":{"href":"https://api.github.com/repos/LuisRBarreras/array-extensions/issues/2"},"comments":{"href":"https://api.github.com/repos/LuisRBarreras/array-extensions/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/LuisRBarreras/array-extensions/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/LuisRBarreras/array-extensions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LuisRBarreras/array-extensions/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/LuisRBarreras/array-extensions/statuses/98ab6376081f51d73771bd408717734aae7996b3"}}}}
{"actor":{"display_login":"ryanez"}}