{"action":"created","comment":{"url":"https://api.github.com/repos/jashkenas/underscore/pulls/comments/62209853","id":62209853,"diff_hunk":"@@ -1370,6 +1370,24 @@\n \n   _.property = property;\n \n+  // Generates a function for a given object that returns the passed function's return value.\n+  // Accepts a string or function literal for value.\n+  // If value is a string, function assumes (and verifies) this string is a method name on the\n+  // referenced object.\n+  _.method = function(value) {\n+    var isFunction = this.isFunction,\n+        rest = this.rest,","path":"underscore.js","position":10,"original_position":10,"commit_id":"10bc63eb35b9709576a29ddf1f35e588ffd304a0","original_commit_id":"10bc63eb35b9709576a29ddf1f35e588ffd304a0","user":{"login":"megawac","id":3475472,"avatar_url":"https://avatars.githubusercontent.com/u/3475472?v=3","gravatar_id":"","url":"https://api.github.com/users/megawac","html_url":"https://github.com/megawac","followers_url":"https://api.github.com/users/megawac/followers","following_url":"https://api.github.com/users/megawac/following{/other_user}","gists_url":"https://api.github.com/users/megawac/gists{/gist_id}","starred_url":"https://api.github.com/users/megawac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/megawac/subscriptions","organizations_url":"https://api.github.com/users/megawac/orgs","repos_url":"https://api.github.com/users/megawac/repos","events_url":"https://api.github.com/users/megawac/events{/privacy}","received_events_url":"https://api.github.com/users/megawac/received_events","type":"User","site_admin":false},"body":"use `restArgs` instead","created_at":"2016-05-05T16:08:32Z","updated_at":"2016-05-05T16:08:33Z","html_url":"https://github.com/jashkenas/underscore/pull/2531#discussion_r62209853","pull_request_url":"https://api.github.com/repos/jashkenas/underscore/pulls/2531","_links":{"self":{"href":"https://api.github.com/repos/jashkenas/underscore/pulls/comments/62209853"},"html":{"href":"https://github.com/jashkenas/underscore/pull/2531#discussion_r62209853"},"pull_request":{"href":"https://api.github.com/repos/jashkenas/underscore/pulls/2531"}}},"pull_request":{"url":"https://api.github.com/repos/jashkenas/underscore/pulls/2531","id":69023594,"html_url":"https://github.com/jashkenas/underscore/pull/2531","diff_url":"https://github.com/jashkenas/underscore/pull/2531.diff","patch_url":"https://github.com/jashkenas/underscore/pull/2531.patch","issue_url":"https://api.github.com/repos/jashkenas/underscore/issues/2531","number":2531,"state":"open","locked":false,"title":"[#2286]: Underscore could use a _.propertyResult","user":{"login":"monkpow","id":8430,"avatar_url":"https://avatars.githubusercontent.com/u/8430?v=3","gravatar_id":"","url":"https://api.github.com/users/monkpow","html_url":"https://github.com/monkpow","followers_url":"https://api.github.com/users/monkpow/followers","following_url":"https://api.github.com/users/monkpow/following{/other_user}","gists_url":"https://api.github.com/users/monkpow/gists{/gist_id}","starred_url":"https://api.github.com/users/monkpow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monkpow/subscriptions","organizations_url":"https://api.github.com/users/monkpow/orgs","repos_url":"https://api.github.com/users/monkpow/repos","events_url":"https://api.github.com/users/monkpow/events{/privacy}","received_events_url":"https://api.github.com/users/monkpow/received_events","type":"User","site_admin":false},"body":"I chose the name _.method per the above suggestion, but am happy to adjust if this does not match the project guidelines.\r\n\r\nFixes #2286","created_at":"2016-05-05T15:29:56Z","updated_at":"2016-05-05T16:08:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"85b13db65ff8e8f7d734c89aaa8665204fe8b4e2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jashkenas/underscore/pulls/2531/commits","review_comments_url":"https://api.github.com/repos/jashkenas/underscore/pulls/2531/comments","review_comment_url":"https://api.github.com/repos/jashkenas/underscore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jashkenas/underscore/issues/2531/comments","statuses_url":"https://api.github.com/repos/jashkenas/underscore/statuses/10bc63eb35b9709576a29ddf1f35e588ffd304a0","head":{"label":"monkpow:master","ref":"master","sha":"10bc63eb35b9709576a29ddf1f35e588ffd304a0","user":{"login":"monkpow","id":8430,"avatar_url":"https://avatars.githubusercontent.com/u/8430?v=3","gravatar_id":"","url":"https://api.github.com/users/monkpow","html_url":"https://github.com/monkpow","followers_url":"https://api.github.com/users/monkpow/followers","following_url":"https://api.github.com/users/monkpow/following{/other_user}","gists_url":"https://api.github.com/users/monkpow/gists{/gist_id}","starred_url":"https://api.github.com/users/monkpow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monkpow/subscriptions","organizations_url":"https://api.github.com/users/monkpow/orgs","repos_url":"https://api.github.com/users/monkpow/repos","events_url":"https://api.github.com/users/monkpow/events{/privacy}","received_events_url":"https://api.github.com/users/monkpow/received_events","type":"User","site_admin":false},"repo":{"id":57917540,"name":"underscore","full_name":"monkpow/underscore","owner":{"login":"monkpow","id":8430,"avatar_url":"https://avatars.githubusercontent.com/u/8430?v=3","gravatar_id":"","url":"https://api.github.com/users/monkpow","html_url":"https://github.com/monkpow","followers_url":"https://api.github.com/users/monkpow/followers","following_url":"https://api.github.com/users/monkpow/following{/other_user}","gists_url":"https://api.github.com/users/monkpow/gists{/gist_id}","starred_url":"https://api.github.com/users/monkpow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monkpow/subscriptions","organizations_url":"https://api.github.com/users/monkpow/orgs","repos_url":"https://api.github.com/users/monkpow/repos","events_url":"https://api.github.com/users/monkpow/events{/privacy}","received_events_url":"https://api.github.com/users/monkpow/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/monkpow/underscore","description":"JavaScript's utility _ belt","fork":true,"url":"https://api.github.com/repos/monkpow/underscore","forks_url":"https://api.github.com/repos/monkpow/underscore/forks","keys_url":"https://api.github.com/repos/monkpow/underscore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/monkpow/underscore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/monkpow/underscore/teams","hooks_url":"https://api.github.com/repos/monkpow/underscore/hooks","issue_events_url":"https://api.github.com/repos/monkpow/underscore/issues/events{/number}","events_url":"https://api.github.com/repos/monkpow/underscore/events","assignees_url":"https://api.github.com/repos/monkpow/underscore/assignees{/user}","branches_url":"https://api.github.com/repos/monkpow/underscore/branches{/branch}","tags_url":"https://api.github.com/repos/monkpow/underscore/tags","blobs_url":"https://api.github.com/repos/monkpow/underscore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/monkpow/underscore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/monkpow/underscore/git/refs{/sha}","trees_url":"https://api.github.com/repos/monkpow/underscore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/monkpow/underscore/statuses/{sha}","languages_url":"https://api.github.com/repos/monkpow/underscore/languages","stargazers_url":"https://api.github.com/repos/monkpow/underscore/stargazers","contributors_url":"https://api.github.com/repos/monkpow/underscore/contributors","subscribers_url":"https://api.github.com/repos/monkpow/underscore/subscribers","subscription_url":"https://api.github.com/repos/monkpow/underscore/subscription","commits_url":"https://api.github.com/repos/monkpow/underscore/commits{/sha}","git_commits_url":"https://api.github.com/repos/monkpow/underscore/git/commits{/sha}","comments_url":"https://api.github.com/repos/monkpow/underscore/comments{/number}","issue_comment_url":"https://api.github.com/repos/monkpow/underscore/issues/comments{/number}","contents_url":"https://api.github.com/repos/monkpow/underscore/contents/{+path}","compare_url":"https://api.github.com/repos/monkpow/underscore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/monkpow/underscore/merges","archive_url":"https://api.github.com/repos/monkpow/underscore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/monkpow/underscore/downloads","issues_url":"https://api.github.com/repos/monkpow/underscore/issues{/number}","pulls_url":"https://api.github.com/repos/monkpow/underscore/pulls{/number}","milestones_url":"https://api.github.com/repos/monkpow/underscore/milestones{/number}","notifications_url":"https://api.github.com/repos/monkpow/underscore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/monkpow/underscore/labels{/name}","releases_url":"https://api.github.com/repos/monkpow/underscore/releases{/id}","deployments_url":"https://api.github.com/repos/monkpow/underscore/deployments","created_at":"2016-05-02T19:56:09Z","updated_at":"2016-05-02T19:56:11Z","pushed_at":"2016-05-05T15:55:34Z","git_url":"git://github.com/monkpow/underscore.git","ssh_url":"git@github.com:monkpow/underscore.git","clone_url":"https://github.com/monkpow/underscore.git","svn_url":"https://github.com/monkpow/underscore","homepage":"http://underscorejs.org","size":4018,"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":"jashkenas:master","ref":"master","sha":"53086b0f9f6cb4e2fb4eede82b4ef9f74bca030a","user":{"login":"jashkenas","id":4732,"avatar_url":"https://avatars.githubusercontent.com/u/4732?v=3","gravatar_id":"","url":"https://api.github.com/users/jashkenas","html_url":"https://github.com/jashkenas","followers_url":"https://api.github.com/users/jashkenas/followers","following_url":"https://api.github.com/users/jashkenas/following{/other_user}","gists_url":"https://api.github.com/users/jashkenas/gists{/gist_id}","starred_url":"https://api.github.com/users/jashkenas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jashkenas/subscriptions","organizations_url":"https://api.github.com/users/jashkenas/orgs","repos_url":"https://api.github.com/users/jashkenas/repos","events_url":"https://api.github.com/users/jashkenas/events{/privacy}","received_events_url":"https://api.github.com/users/jashkenas/received_events","type":"User","site_admin":false},"repo":{"id":349241,"name":"underscore","full_name":"jashkenas/underscore","owner":{"login":"jashkenas","id":4732,"avatar_url":"https://avatars.githubusercontent.com/u/4732?v=3","gravatar_id":"","url":"https://api.github.com/users/jashkenas","html_url":"https://github.com/jashkenas","followers_url":"https://api.github.com/users/jashkenas/followers","following_url":"https://api.github.com/users/jashkenas/following{/other_user}","gists_url":"https://api.github.com/users/jashkenas/gists{/gist_id}","starred_url":"https://api.github.com/users/jashkenas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jashkenas/subscriptions","organizations_url":"https://api.github.com/users/jashkenas/orgs","repos_url":"https://api.github.com/users/jashkenas/repos","events_url":"https://api.github.com/users/jashkenas/events{/privacy}","received_events_url":"https://api.github.com/users/jashkenas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jashkenas/underscore","description":"JavaScript's utility _ belt","fork":false,"url":"https://api.github.com/repos/jashkenas/underscore","forks_url":"https://api.github.com/repos/jashkenas/underscore/forks","keys_url":"https://api.github.com/repos/jashkenas/underscore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jashkenas/underscore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jashkenas/underscore/teams","hooks_url":"https://api.github.com/repos/jashkenas/underscore/hooks","issue_events_url":"https://api.github.com/repos/jashkenas/underscore/issues/events{/number}","events_url":"https://api.github.com/repos/jashkenas/underscore/events","assignees_url":"https://api.github.com/repos/jashkenas/underscore/assignees{/user}","branches_url":"https://api.github.com/repos/jashkenas/underscore/branches{/branch}","tags_url":"https://api.github.com/repos/jashkenas/underscore/tags","blobs_url":"https://api.github.com/repos/jashkenas/underscore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jashkenas/underscore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jashkenas/underscore/git/refs{/sha}","trees_url":"https://api.github.com/repos/jashkenas/underscore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jashkenas/underscore/statuses/{sha}","languages_url":"https://api.github.com/repos/jashkenas/underscore/languages","stargazers_url":"https://api.github.com/repos/jashkenas/underscore/stargazers","contributors_url":"https://api.github.com/repos/jashkenas/underscore/contributors","subscribers_url":"https://api.github.com/repos/jashkenas/underscore/subscribers","subscription_url":"https://api.github.com/repos/jashkenas/underscore/subscription","commits_url":"https://api.github.com/repos/jashkenas/underscore/commits{/sha}","git_commits_url":"https://api.github.com/repos/jashkenas/underscore/git/commits{/sha}","comments_url":"https://api.github.com/repos/jashkenas/underscore/comments{/number}","issue_comment_url":"https://api.github.com/repos/jashkenas/underscore/issues/comments{/number}","contents_url":"https://api.github.com/repos/jashkenas/underscore/contents/{+path}","compare_url":"https://api.github.com/repos/jashkenas/underscore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jashkenas/underscore/merges","archive_url":"https://api.github.com/repos/jashkenas/underscore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jashkenas/underscore/downloads","issues_url":"https://api.github.com/repos/jashkenas/underscore/issues{/number}","pulls_url":"https://api.github.com/repos/jashkenas/underscore/pulls{/number}","milestones_url":"https://api.github.com/repos/jashkenas/underscore/milestones{/number}","notifications_url":"https://api.github.com/repos/jashkenas/underscore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jashkenas/underscore/labels{/name}","releases_url":"https://api.github.com/repos/jashkenas/underscore/releases{/id}","deployments_url":"https://api.github.com/repos/jashkenas/underscore/deployments","created_at":"2009-10-25T18:31:06Z","updated_at":"2016-05-05T15:02:13Z","pushed_at":"2016-05-05T15:55:34Z","git_url":"git://github.com/jashkenas/underscore.git","ssh_url":"git@github.com:jashkenas/underscore.git","clone_url":"https://github.com/jashkenas/underscore.git","svn_url":"https://github.com/jashkenas/underscore","homepage":"http://underscorejs.org","size":9929,"stargazers_count":18066,"watchers_count":18066,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4061,"mirror_url":null,"open_issues_count":88,"forks":4061,"open_issues":88,"watchers":18066,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jashkenas/underscore/pulls/2531"},"html":{"href":"https://github.com/jashkenas/underscore/pull/2531"},"issue":{"href":"https://api.github.com/repos/jashkenas/underscore/issues/2531"},"comments":{"href":"https://api.github.com/repos/jashkenas/underscore/issues/2531/comments"},"review_comments":{"href":"https://api.github.com/repos/jashkenas/underscore/pulls/2531/comments"},"review_comment":{"href":"https://api.github.com/repos/jashkenas/underscore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jashkenas/underscore/pulls/2531/commits"},"statuses":{"href":"https://api.github.com/repos/jashkenas/underscore/statuses/10bc63eb35b9709576a29ddf1f35e588ffd304a0"}}}}