{"action":"created","comment":{"url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/pulls/comments/35836781","id":35836781,"diff_hunk":"@@ -37,6 +37,31 @@ var cb = function(value, context, argCount) {\n   return _.property(value);\n };\n \n+var property = function(key) {\n+  return function(obj) {\n+    return obj == null ? void 0 : obj[key];\n+  };\n+};\n+\n+var getLength = property('length');\n+\n+// Generator function to create the findIndex and findLastIndex functions\n+var createPredicateIndexFinder = function(dir) {\n+  return function(array, predicate, context) {\n+    predicate = cb(predicate, context);\n+    var length = getLength(array);\n+    var index = dir > 0 ? 0 : length - 1;\n+    for (; index >= 0 && index < length; index += dir) {\n+      if (predicate(array[index], index, array)) return index;\n+    }\n+    return -1;\n+  };\n+};\n+\n+// Returns the first index on an array-like that passes a predicate test\n+_.findIndex = createPredicateIndexFinder(1);\n+_.findLastIndex = createPredicateIndexFinder(-1);","path":"underscore-updates.js","position":27,"original_position":27,"commit_id":"71507ee84b47de7be093f21c05a8d52e7154e805","original_commit_id":"71507ee84b47de7be093f21c05a8d52e7154e805","user":{"login":"bradvogel","id":821706,"avatar_url":"https://avatars.githubusercontent.com/u/821706?v=3","gravatar_id":"","url":"https://api.github.com/users/bradvogel","html_url":"https://github.com/bradvogel","followers_url":"https://api.github.com/users/bradvogel/followers","following_url":"https://api.github.com/users/bradvogel/following{/other_user}","gists_url":"https://api.github.com/users/bradvogel/gists{/gist_id}","starred_url":"https://api.github.com/users/bradvogel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradvogel/subscriptions","organizations_url":"https://api.github.com/users/bradvogel/orgs","repos_url":"https://api.github.com/users/bradvogel/repos","events_url":"https://api.github.com/users/bradvogel/events{/privacy}","received_events_url":"https://api.github.com/users/bradvogel/received_events","type":"User","site_admin":false},"body":"Please add these to the readme.","created_at":"2015-07-30T04:09:58Z","updated_at":"2015-07-30T04:09:58Z","html_url":"https://github.com/mixmaxhq/meteor-underscore-updates/pull/1#discussion_r35836781","pull_request_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/pulls/comments/35836781"},"html":{"href":"https://github.com/mixmaxhq/meteor-underscore-updates/pull/1#discussion_r35836781"},"pull_request":{"href":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/pulls/1","id":41196153,"html_url":"https://github.com/mixmaxhq/meteor-underscore-updates/pull/1","diff_url":"https://github.com/mixmaxhq/meteor-underscore-updates/pull/1.diff","patch_url":"https://github.com/mixmaxhq/meteor-underscore-updates/pull/1.patch","issue_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/issues/1","number":1,"state":"open","locked":false,"title":"Added findIndex and findLastIndex functions","user":{"login":"denisjuergen","id":6698670,"avatar_url":"https://avatars.githubusercontent.com/u/6698670?v=3","gravatar_id":"","url":"https://api.github.com/users/denisjuergen","html_url":"https://github.com/denisjuergen","followers_url":"https://api.github.com/users/denisjuergen/followers","following_url":"https://api.github.com/users/denisjuergen/following{/other_user}","gists_url":"https://api.github.com/users/denisjuergen/gists{/gist_id}","starred_url":"https://api.github.com/users/denisjuergen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denisjuergen/subscriptions","organizations_url":"https://api.github.com/users/denisjuergen/orgs","repos_url":"https://api.github.com/users/denisjuergen/repos","events_url":"https://api.github.com/users/denisjuergen/events{/privacy}","received_events_url":"https://api.github.com/users/denisjuergen/received_events","type":"User","site_admin":false},"body":"Like mentioned in the commit messages, I've added core helper functions needed by those functions as well.","created_at":"2015-07-30T03:58:46Z","updated_at":"2015-07-30T04:09:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"603d3bb65f4a7f7bd7d31a96ab834e704a77e0a4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/pulls/1/commits","review_comments_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/pulls/1/comments","review_comment_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/issues/1/comments","statuses_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/statuses/71507ee84b47de7be093f21c05a8d52e7154e805","head":{"label":"denisjuergen:master","ref":"master","sha":"71507ee84b47de7be093f21c05a8d52e7154e805","user":{"login":"denisjuergen","id":6698670,"avatar_url":"https://avatars.githubusercontent.com/u/6698670?v=3","gravatar_id":"","url":"https://api.github.com/users/denisjuergen","html_url":"https://github.com/denisjuergen","followers_url":"https://api.github.com/users/denisjuergen/followers","following_url":"https://api.github.com/users/denisjuergen/following{/other_user}","gists_url":"https://api.github.com/users/denisjuergen/gists{/gist_id}","starred_url":"https://api.github.com/users/denisjuergen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denisjuergen/subscriptions","organizations_url":"https://api.github.com/users/denisjuergen/orgs","repos_url":"https://api.github.com/users/denisjuergen/repos","events_url":"https://api.github.com/users/denisjuergen/events{/privacy}","received_events_url":"https://api.github.com/users/denisjuergen/received_events","type":"User","site_admin":false},"repo":{"id":39929377,"name":"meteor-underscore-updates","full_name":"denisjuergen/meteor-underscore-updates","owner":{"login":"denisjuergen","id":6698670,"avatar_url":"https://avatars.githubusercontent.com/u/6698670?v=3","gravatar_id":"","url":"https://api.github.com/users/denisjuergen","html_url":"https://github.com/denisjuergen","followers_url":"https://api.github.com/users/denisjuergen/followers","following_url":"https://api.github.com/users/denisjuergen/following{/other_user}","gists_url":"https://api.github.com/users/denisjuergen/gists{/gist_id}","starred_url":"https://api.github.com/users/denisjuergen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denisjuergen/subscriptions","organizations_url":"https://api.github.com/users/denisjuergen/orgs","repos_url":"https://api.github.com/users/denisjuergen/repos","events_url":"https://api.github.com/users/denisjuergen/events{/privacy}","received_events_url":"https://api.github.com/users/denisjuergen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/denisjuergen/meteor-underscore-updates","description":"Extend Meteor's Underscore with selected methods from the latest standard version.","fork":true,"url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates","forks_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/forks","keys_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/keys{/key_id}","collaborators_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/teams","hooks_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/hooks","issue_events_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/issues/events{/number}","events_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/events","assignees_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/assignees{/user}","branches_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/branches{/branch}","tags_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/tags","blobs_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/git/refs{/sha}","trees_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/git/trees{/sha}","statuses_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/statuses/{sha}","languages_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/languages","stargazers_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/stargazers","contributors_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/contributors","subscribers_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/subscribers","subscription_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/subscription","commits_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/commits{/sha}","git_commits_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/git/commits{/sha}","comments_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/comments{/number}","issue_comment_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/issues/comments{/number}","contents_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/contents/{+path}","compare_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/compare/{base}...{head}","merges_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/merges","archive_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/downloads","issues_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/issues{/number}","pulls_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/pulls{/number}","milestones_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/milestones{/number}","notifications_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/labels{/name}","releases_url":"https://api.github.com/repos/denisjuergen/meteor-underscore-updates/releases{/id}","created_at":"2015-07-30T03:29:44Z","updated_at":"2015-07-30T03:29:44Z","pushed_at":"2015-07-30T03:54:36Z","git_url":"git://github.com/denisjuergen/meteor-underscore-updates.git","ssh_url":"git@github.com:denisjuergen/meteor-underscore-updates.git","clone_url":"https://github.com/denisjuergen/meteor-underscore-updates.git","svn_url":"https://github.com/denisjuergen/meteor-underscore-updates","homepage":null,"size":84,"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":"mixmaxhq:master","ref":"master","sha":"e2210534ecf80b347fcd157b1cde33bfd01565f7","user":{"login":"mixmaxhq","id":7530142,"avatar_url":"https://avatars.githubusercontent.com/u/7530142?v=3","gravatar_id":"","url":"https://api.github.com/users/mixmaxhq","html_url":"https://github.com/mixmaxhq","followers_url":"https://api.github.com/users/mixmaxhq/followers","following_url":"https://api.github.com/users/mixmaxhq/following{/other_user}","gists_url":"https://api.github.com/users/mixmaxhq/gists{/gist_id}","starred_url":"https://api.github.com/users/mixmaxhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixmaxhq/subscriptions","organizations_url":"https://api.github.com/users/mixmaxhq/orgs","repos_url":"https://api.github.com/users/mixmaxhq/repos","events_url":"https://api.github.com/users/mixmaxhq/events{/privacy}","received_events_url":"https://api.github.com/users/mixmaxhq/received_events","type":"Organization","site_admin":false},"repo":{"id":36958034,"name":"meteor-underscore-updates","full_name":"mixmaxhq/meteor-underscore-updates","owner":{"login":"mixmaxhq","id":7530142,"avatar_url":"https://avatars.githubusercontent.com/u/7530142?v=3","gravatar_id":"","url":"https://api.github.com/users/mixmaxhq","html_url":"https://github.com/mixmaxhq","followers_url":"https://api.github.com/users/mixmaxhq/followers","following_url":"https://api.github.com/users/mixmaxhq/following{/other_user}","gists_url":"https://api.github.com/users/mixmaxhq/gists{/gist_id}","starred_url":"https://api.github.com/users/mixmaxhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixmaxhq/subscriptions","organizations_url":"https://api.github.com/users/mixmaxhq/orgs","repos_url":"https://api.github.com/users/mixmaxhq/repos","events_url":"https://api.github.com/users/mixmaxhq/events{/privacy}","received_events_url":"https://api.github.com/users/mixmaxhq/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mixmaxhq/meteor-underscore-updates","description":"Extend Meteor's Underscore with selected methods from the latest standard version.","fork":false,"url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates","forks_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/forks","keys_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/teams","hooks_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/hooks","issue_events_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/issues/events{/number}","events_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/events","assignees_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/assignees{/user}","branches_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/branches{/branch}","tags_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/tags","blobs_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/git/refs{/sha}","trees_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/statuses/{sha}","languages_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/languages","stargazers_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/stargazers","contributors_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/contributors","subscribers_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/subscribers","subscription_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/subscription","commits_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/commits{/sha}","git_commits_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/git/commits{/sha}","comments_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/comments{/number}","issue_comment_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/issues/comments{/number}","contents_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/contents/{+path}","compare_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/merges","archive_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/downloads","issues_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/issues{/number}","pulls_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/pulls{/number}","milestones_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/milestones{/number}","notifications_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/labels{/name}","releases_url":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/releases{/id}","created_at":"2015-06-05T22:14:47Z","updated_at":"2015-07-30T04:09:29Z","pushed_at":"2015-07-30T03:58:46Z","git_url":"git://github.com/mixmaxhq/meteor-underscore-updates.git","ssh_url":"git@github.com:mixmaxhq/meteor-underscore-updates.git","clone_url":"https://github.com/mixmaxhq/meteor-underscore-updates.git","svn_url":"https://github.com/mixmaxhq/meteor-underscore-updates","homepage":null,"size":136,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/pulls/1"},"html":{"href":"https://github.com/mixmaxhq/meteor-underscore-updates/pull/1"},"issue":{"href":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/issues/1"},"comments":{"href":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/mixmaxhq/meteor-underscore-updates/statuses/71507ee84b47de7be093f21c05a8d52e7154e805"}}}}