{"action":"created","comment":{"url":"https://api.github.com/repos/ramda/ramda/pulls/comments/27772558","id":27772558,"diff_hunk":"@@ -0,0 +1,29 @@\n+var _curry2 = require('./internal/_curry2');\n+var _filterObj = require('./internal/_filterObj');\n+\n+/**\n+ * Returns a new object containing only those key-value pairs of which the\n+ * values match a given predicate function.\n+ * The predicate function is passed one argument: *(value)*.\n+ *\n+ * @func\n+ * @memberOf R\n+ * @category Object\n+ * @sig (v -> Boolean) -> {k, v} -> {k, v}\n+ * @param {Function} fn The function called per key.\n+ * @param {Object} obj The object to iterate over the keys.\n+ * @return {Object} The new filtered object.\n+ * @example\n+ *\n+ *      var isPositive = function(n) {\n+ *        return n > 0;\n+ *      };\n+ *      R.filterObj(isPositive, {a: 1, b: 2, c: -1, d: 0, e: 5}); //=> {a: 1, b: 2, e: 5}\n+ *\n+ *      var containsBackground = function(x) {\n+ *        return x.bgcolor;\n+ *      };\n+ *      var colors = {1: {color: 'read'}, 2: {color: 'black', bgcolor: 'yellow'}};","path":"src/filterObj.js","position":26,"original_position":26,"commit_id":"193af84a3986a7b696dbe1a511860105e1ea1a93","original_commit_id":"193af84a3986a7b696dbe1a511860105e1ea1a93","user":{"login":"CrossEye","id":151263,"avatar_url":"https://avatars.githubusercontent.com/u/151263?v=3","gravatar_id":"","url":"https://api.github.com/users/CrossEye","html_url":"https://github.com/CrossEye","followers_url":"https://api.github.com/users/CrossEye/followers","following_url":"https://api.github.com/users/CrossEye/following{/other_user}","gists_url":"https://api.github.com/users/CrossEye/gists{/gist_id}","starred_url":"https://api.github.com/users/CrossEye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CrossEye/subscriptions","organizations_url":"https://api.github.com/users/CrossEye/orgs","repos_url":"https://api.github.com/users/CrossEye/repos","events_url":"https://api.github.com/users/CrossEye/events{/privacy}","received_events_url":"https://api.github.com/users/CrossEye/received_events","type":"User","site_admin":false},"body":"```javascript\r\n var colors = {1: {color: 'read'}, 2: {color: 'bleak', bgcolor: 'mellow'}};\r\n```\r\n\r\n??","created_at":"2015-04-04T22:00:21Z","updated_at":"2015-04-04T22:00:21Z","html_url":"https://github.com/ramda/ramda/pull/1004#discussion_r27772558","pull_request_url":"https://api.github.com/repos/ramda/ramda/pulls/1004","_links":{"self":{"href":"https://api.github.com/repos/ramda/ramda/pulls/comments/27772558"},"html":{"href":"https://github.com/ramda/ramda/pull/1004#discussion_r27772558"},"pull_request":{"href":"https://api.github.com/repos/ramda/ramda/pulls/1004"}}},"pull_request":{"url":"https://api.github.com/repos/ramda/ramda/pulls/1004","id":32632729,"html_url":"https://github.com/ramda/ramda/pull/1004","diff_url":"https://github.com/ramda/ramda/pull/1004.diff","patch_url":"https://github.com/ramda/ramda/pull/1004.patch","issue_url":"https://api.github.com/repos/ramda/ramda/issues/1004","number":1004,"state":"open","locked":false,"title":"filter objects","user":{"login":"donnut","id":417406,"avatar_url":"https://avatars.githubusercontent.com/u/417406?v=3","gravatar_id":"","url":"https://api.github.com/users/donnut","html_url":"https://github.com/donnut","followers_url":"https://api.github.com/users/donnut/followers","following_url":"https://api.github.com/users/donnut/following{/other_user}","gists_url":"https://api.github.com/users/donnut/gists{/gist_id}","starred_url":"https://api.github.com/users/donnut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donnut/subscriptions","organizations_url":"https://api.github.com/users/donnut/orgs","repos_url":"https://api.github.com/users/donnut/repos","events_url":"https://api.github.com/users/donnut/events{/privacy}","received_events_url":"https://api.github.com/users/donnut/received_events","type":"User","site_admin":false},"body":"A proposal for filtering objects.","created_at":"2015-04-04T12:09:03Z","updated_at":"2015-04-04T22:00:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"274c4c80ee8105c1441557cf7b495f1bb274fab4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ramda/ramda/pulls/1004/commits","review_comments_url":"https://api.github.com/repos/ramda/ramda/pulls/1004/comments","review_comment_url":"https://api.github.com/repos/ramda/ramda/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ramda/ramda/issues/1004/comments","statuses_url":"https://api.github.com/repos/ramda/ramda/statuses/193af84a3986a7b696dbe1a511860105e1ea1a93","head":{"label":"donnut:filter_objects","ref":"filter_objects","sha":"193af84a3986a7b696dbe1a511860105e1ea1a93","user":{"login":"donnut","id":417406,"avatar_url":"https://avatars.githubusercontent.com/u/417406?v=3","gravatar_id":"","url":"https://api.github.com/users/donnut","html_url":"https://github.com/donnut","followers_url":"https://api.github.com/users/donnut/followers","following_url":"https://api.github.com/users/donnut/following{/other_user}","gists_url":"https://api.github.com/users/donnut/gists{/gist_id}","starred_url":"https://api.github.com/users/donnut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donnut/subscriptions","organizations_url":"https://api.github.com/users/donnut/orgs","repos_url":"https://api.github.com/users/donnut/repos","events_url":"https://api.github.com/users/donnut/events{/privacy}","received_events_url":"https://api.github.com/users/donnut/received_events","type":"User","site_admin":false},"repo":{"id":22543968,"name":"ramda","full_name":"donnut/ramda","owner":{"login":"donnut","id":417406,"avatar_url":"https://avatars.githubusercontent.com/u/417406?v=3","gravatar_id":"","url":"https://api.github.com/users/donnut","html_url":"https://github.com/donnut","followers_url":"https://api.github.com/users/donnut/followers","following_url":"https://api.github.com/users/donnut/following{/other_user}","gists_url":"https://api.github.com/users/donnut/gists{/gist_id}","starred_url":"https://api.github.com/users/donnut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donnut/subscriptions","organizations_url":"https://api.github.com/users/donnut/orgs","repos_url":"https://api.github.com/users/donnut/repos","events_url":"https://api.github.com/users/donnut/events{/privacy}","received_events_url":"https://api.github.com/users/donnut/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/donnut/ramda","description":"","fork":true,"url":"https://api.github.com/repos/donnut/ramda","forks_url":"https://api.github.com/repos/donnut/ramda/forks","keys_url":"https://api.github.com/repos/donnut/ramda/keys{/key_id}","collaborators_url":"https://api.github.com/repos/donnut/ramda/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/donnut/ramda/teams","hooks_url":"https://api.github.com/repos/donnut/ramda/hooks","issue_events_url":"https://api.github.com/repos/donnut/ramda/issues/events{/number}","events_url":"https://api.github.com/repos/donnut/ramda/events","assignees_url":"https://api.github.com/repos/donnut/ramda/assignees{/user}","branches_url":"https://api.github.com/repos/donnut/ramda/branches{/branch}","tags_url":"https://api.github.com/repos/donnut/ramda/tags","blobs_url":"https://api.github.com/repos/donnut/ramda/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/donnut/ramda/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/donnut/ramda/git/refs{/sha}","trees_url":"https://api.github.com/repos/donnut/ramda/git/trees{/sha}","statuses_url":"https://api.github.com/repos/donnut/ramda/statuses/{sha}","languages_url":"https://api.github.com/repos/donnut/ramda/languages","stargazers_url":"https://api.github.com/repos/donnut/ramda/stargazers","contributors_url":"https://api.github.com/repos/donnut/ramda/contributors","subscribers_url":"https://api.github.com/repos/donnut/ramda/subscribers","subscription_url":"https://api.github.com/repos/donnut/ramda/subscription","commits_url":"https://api.github.com/repos/donnut/ramda/commits{/sha}","git_commits_url":"https://api.github.com/repos/donnut/ramda/git/commits{/sha}","comments_url":"https://api.github.com/repos/donnut/ramda/comments{/number}","issue_comment_url":"https://api.github.com/repos/donnut/ramda/issues/comments{/number}","contents_url":"https://api.github.com/repos/donnut/ramda/contents/{+path}","compare_url":"https://api.github.com/repos/donnut/ramda/compare/{base}...{head}","merges_url":"https://api.github.com/repos/donnut/ramda/merges","archive_url":"https://api.github.com/repos/donnut/ramda/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/donnut/ramda/downloads","issues_url":"https://api.github.com/repos/donnut/ramda/issues{/number}","pulls_url":"https://api.github.com/repos/donnut/ramda/pulls{/number}","milestones_url":"https://api.github.com/repos/donnut/ramda/milestones{/number}","notifications_url":"https://api.github.com/repos/donnut/ramda/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/donnut/ramda/labels{/name}","releases_url":"https://api.github.com/repos/donnut/ramda/releases{/id}","created_at":"2014-08-02T10:22:27Z","updated_at":"2015-04-04T11:53:49Z","pushed_at":"2015-04-04T12:10:09Z","git_url":"git://github.com/donnut/ramda.git","ssh_url":"git@github.com:donnut/ramda.git","clone_url":"https://github.com/donnut/ramda.git","svn_url":"https://github.com/donnut/ramda","homepage":null,"size":3806,"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":"ramda:master","ref":"master","sha":"317e3f6ae650801083c11449dd81666bd33de269","user":{"login":"ramda","id":5298359,"avatar_url":"https://avatars.githubusercontent.com/u/5298359?v=3","gravatar_id":"","url":"https://api.github.com/users/ramda","html_url":"https://github.com/ramda","followers_url":"https://api.github.com/users/ramda/followers","following_url":"https://api.github.com/users/ramda/following{/other_user}","gists_url":"https://api.github.com/users/ramda/gists{/gist_id}","starred_url":"https://api.github.com/users/ramda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramda/subscriptions","organizations_url":"https://api.github.com/users/ramda/orgs","repos_url":"https://api.github.com/users/ramda/repos","events_url":"https://api.github.com/users/ramda/events{/privacy}","received_events_url":"https://api.github.com/users/ramda/received_events","type":"Organization","site_admin":false},"repo":{"id":10851820,"name":"ramda","full_name":"ramda/ramda","owner":{"login":"ramda","id":5298359,"avatar_url":"https://avatars.githubusercontent.com/u/5298359?v=3","gravatar_id":"","url":"https://api.github.com/users/ramda","html_url":"https://github.com/ramda","followers_url":"https://api.github.com/users/ramda/followers","following_url":"https://api.github.com/users/ramda/following{/other_user}","gists_url":"https://api.github.com/users/ramda/gists{/gist_id}","starred_url":"https://api.github.com/users/ramda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramda/subscriptions","organizations_url":"https://api.github.com/users/ramda/orgs","repos_url":"https://api.github.com/users/ramda/repos","events_url":"https://api.github.com/users/ramda/events{/privacy}","received_events_url":"https://api.github.com/users/ramda/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ramda/ramda","description":":ram: Practical functional Javascript","fork":false,"url":"https://api.github.com/repos/ramda/ramda","forks_url":"https://api.github.com/repos/ramda/ramda/forks","keys_url":"https://api.github.com/repos/ramda/ramda/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ramda/ramda/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ramda/ramda/teams","hooks_url":"https://api.github.com/repos/ramda/ramda/hooks","issue_events_url":"https://api.github.com/repos/ramda/ramda/issues/events{/number}","events_url":"https://api.github.com/repos/ramda/ramda/events","assignees_url":"https://api.github.com/repos/ramda/ramda/assignees{/user}","branches_url":"https://api.github.com/repos/ramda/ramda/branches{/branch}","tags_url":"https://api.github.com/repos/ramda/ramda/tags","blobs_url":"https://api.github.com/repos/ramda/ramda/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ramda/ramda/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ramda/ramda/git/refs{/sha}","trees_url":"https://api.github.com/repos/ramda/ramda/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ramda/ramda/statuses/{sha}","languages_url":"https://api.github.com/repos/ramda/ramda/languages","stargazers_url":"https://api.github.com/repos/ramda/ramda/stargazers","contributors_url":"https://api.github.com/repos/ramda/ramda/contributors","subscribers_url":"https://api.github.com/repos/ramda/ramda/subscribers","subscription_url":"https://api.github.com/repos/ramda/ramda/subscription","commits_url":"https://api.github.com/repos/ramda/ramda/commits{/sha}","git_commits_url":"https://api.github.com/repos/ramda/ramda/git/commits{/sha}","comments_url":"https://api.github.com/repos/ramda/ramda/comments{/number}","issue_comment_url":"https://api.github.com/repos/ramda/ramda/issues/comments{/number}","contents_url":"https://api.github.com/repos/ramda/ramda/contents/{+path}","compare_url":"https://api.github.com/repos/ramda/ramda/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ramda/ramda/merges","archive_url":"https://api.github.com/repos/ramda/ramda/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ramda/ramda/downloads","issues_url":"https://api.github.com/repos/ramda/ramda/issues{/number}","pulls_url":"https://api.github.com/repos/ramda/ramda/pulls{/number}","milestones_url":"https://api.github.com/repos/ramda/ramda/milestones{/number}","notifications_url":"https://api.github.com/repos/ramda/ramda/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ramda/ramda/labels{/name}","releases_url":"https://api.github.com/repos/ramda/ramda/releases{/id}","created_at":"2013-06-21T20:32:35Z","updated_at":"2015-04-04T19:53:00Z","pushed_at":"2015-04-04T17:31:45Z","git_url":"git://github.com/ramda/ramda.git","ssh_url":"git@github.com:ramda/ramda.git","clone_url":"https://github.com/ramda/ramda.git","svn_url":"https://github.com/ramda/ramda","homepage":"http://ramdajs.com","size":10293,"stargazers_count":1880,"watchers_count":1880,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":148,"mirror_url":null,"open_issues_count":37,"forks":148,"open_issues":37,"watchers":1880,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ramda/ramda/pulls/1004"},"html":{"href":"https://github.com/ramda/ramda/pull/1004"},"issue":{"href":"https://api.github.com/repos/ramda/ramda/issues/1004"},"comments":{"href":"https://api.github.com/repos/ramda/ramda/issues/1004/comments"},"review_comments":{"href":"https://api.github.com/repos/ramda/ramda/pulls/1004/comments"},"review_comment":{"href":"https://api.github.com/repos/ramda/ramda/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ramda/ramda/pulls/1004/commits"},"statuses":{"href":"https://api.github.com/repos/ramda/ramda/statuses/193af84a3986a7b696dbe1a511860105e1ea1a93"}}}}