{"action":"created","comment":{"url":"https://api.github.com/repos/ramda/ramda/pulls/comments/78235506","id":78235506,"diff_hunk":"@@ -0,0 +1,36 @@\n+var _curry3 = require('./internal/_curry3');\n+\n+\n+/**\n+ * Similar to `pick` except that this one includes a `key: <default>` pair for\n+ * properties that don't exist\n+ *\n+ * **Note:** A property set to undefined will be left untouched.\n+ *\n+ * @func\n+ * @memberOf R\n+ * @since v0.22.2\n+ * @category Object\n+ * @sig [k] -> * -> {k: v} -> {k: v}\n+ * @param {Array} names an array of String property names to copy onto a new object\n+ * @param * default value when encountering undefined\n+ * @param {Object} obj The object to copy from\n+ * @return {Object} A new object with only properties from `names` on it.\n+ * @see R.pick\n+ * @example\n+ *\n+ *      R.pickWithDefault(['a', 'd'], {a: 1, b: 2, c: 3, d: 4}); //=> {a: 1, d: 4}\n+ *      R.pickWithDefault(['a', 'e', 'f'], null, {a: 1, b: 2, c: 3, d: 4}); //=> {a: 1, e: null, f: null}\n+ */\n+module.exports = _curry3(function pickWithDefault(names, def, obj) {\n+  var result = {};\n+  var idx = 0;\n+  while (idx < names.length) {\n+    result[names[idx]] = (names[idx] in obj)\n+      ?  obj[names[idx]]\n+      : def","path":"src/pickWithDefault.js","position":31,"original_position":31,"commit_id":"8b840c4d80d3cc174382a26527be463d5f0a7487","original_commit_id":"8b840c4d80d3cc174382a26527be463d5f0a7487","user":{"login":"davidchambers","id":210406,"avatar_url":"https://avatars.githubusercontent.com/u/210406?v=3","gravatar_id":"","url":"https://api.github.com/users/davidchambers","html_url":"https://github.com/davidchambers","followers_url":"https://api.github.com/users/davidchambers/followers","following_url":"https://api.github.com/users/davidchambers/following{/other_user}","gists_url":"https://api.github.com/users/davidchambers/gists{/gist_id}","starred_url":"https://api.github.com/users/davidchambers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidchambers/subscriptions","organizations_url":"https://api.github.com/users/davidchambers/orgs","repos_url":"https://api.github.com/users/davidchambers/repos","events_url":"https://api.github.com/users/davidchambers/events{/privacy}","received_events_url":"https://api.github.com/users/davidchambers/received_events","type":"User","site_admin":false},"body":"I'd prefer this formatting:\r\n\r\n```javascript\r\nresult[names[idx]] = names[idx] in obj ? obj[names[idx]] : def;\r\n```\r\n","created_at":"2016-09-09T19:27:57Z","updated_at":"2016-09-09T19:27:57Z","html_url":"https://github.com/ramda/ramda/pull/1895#discussion_r78235506","pull_request_url":"https://api.github.com/repos/ramda/ramda/pulls/1895","_links":{"self":{"href":"https://api.github.com/repos/ramda/ramda/pulls/comments/78235506"},"html":{"href":"https://github.com/ramda/ramda/pull/1895#discussion_r78235506"},"pull_request":{"href":"https://api.github.com/repos/ramda/ramda/pulls/1895"}}},"pull_request":{"url":"https://api.github.com/repos/ramda/ramda/pulls/1895","id":84682571,"html_url":"https://github.com/ramda/ramda/pull/1895","diff_url":"https://github.com/ramda/ramda/pull/1895.diff","patch_url":"https://github.com/ramda/ramda/pull/1895.patch","issue_url":"https://api.github.com/repos/ramda/ramda/issues/1895","number":1895,"state":"open","locked":false,"title":"Add pickWithDefault and deprecate pickAll","user":{"login":"olsonpm","id":5957709,"avatar_url":"https://avatars.githubusercontent.com/u/5957709?v=3","gravatar_id":"","url":"https://api.github.com/users/olsonpm","html_url":"https://github.com/olsonpm","followers_url":"https://api.github.com/users/olsonpm/followers","following_url":"https://api.github.com/users/olsonpm/following{/other_user}","gists_url":"https://api.github.com/users/olsonpm/gists{/gist_id}","starred_url":"https://api.github.com/users/olsonpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olsonpm/subscriptions","organizations_url":"https://api.github.com/users/olsonpm/orgs","repos_url":"https://api.github.com/users/olsonpm/repos","events_url":"https://api.github.com/users/olsonpm/events{/privacy}","received_events_url":"https://api.github.com/users/olsonpm/received_events","type":"User","site_admin":false},"body":" - Fixes #1876","created_at":"2016-09-09T16:49:26Z","updated_at":"2016-09-09T19:27:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d801f92d8ea93ce3ef010103d1c1d3d87c2a6dd0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ramda/ramda/pulls/1895/commits","review_comments_url":"https://api.github.com/repos/ramda/ramda/pulls/1895/comments","review_comment_url":"https://api.github.com/repos/ramda/ramda/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ramda/ramda/issues/1895/comments","statuses_url":"https://api.github.com/repos/ramda/ramda/statuses/8b840c4d80d3cc174382a26527be463d5f0a7487","head":{"label":"olsonpm:feature-pickWithDefault","ref":"feature-pickWithDefault","sha":"8b840c4d80d3cc174382a26527be463d5f0a7487","user":{"login":"olsonpm","id":5957709,"avatar_url":"https://avatars.githubusercontent.com/u/5957709?v=3","gravatar_id":"","url":"https://api.github.com/users/olsonpm","html_url":"https://github.com/olsonpm","followers_url":"https://api.github.com/users/olsonpm/followers","following_url":"https://api.github.com/users/olsonpm/following{/other_user}","gists_url":"https://api.github.com/users/olsonpm/gists{/gist_id}","starred_url":"https://api.github.com/users/olsonpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olsonpm/subscriptions","organizations_url":"https://api.github.com/users/olsonpm/orgs","repos_url":"https://api.github.com/users/olsonpm/repos","events_url":"https://api.github.com/users/olsonpm/events{/privacy}","received_events_url":"https://api.github.com/users/olsonpm/received_events","type":"User","site_admin":false},"repo":{"id":65857097,"name":"ramda","full_name":"olsonpm/ramda","owner":{"login":"olsonpm","id":5957709,"avatar_url":"https://avatars.githubusercontent.com/u/5957709?v=3","gravatar_id":"","url":"https://api.github.com/users/olsonpm","html_url":"https://github.com/olsonpm","followers_url":"https://api.github.com/users/olsonpm/followers","following_url":"https://api.github.com/users/olsonpm/following{/other_user}","gists_url":"https://api.github.com/users/olsonpm/gists{/gist_id}","starred_url":"https://api.github.com/users/olsonpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olsonpm/subscriptions","organizations_url":"https://api.github.com/users/olsonpm/orgs","repos_url":"https://api.github.com/users/olsonpm/repos","events_url":"https://api.github.com/users/olsonpm/events{/privacy}","received_events_url":"https://api.github.com/users/olsonpm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/olsonpm/ramda","description":":ram: Practical functional Javascript","fork":true,"url":"https://api.github.com/repos/olsonpm/ramda","forks_url":"https://api.github.com/repos/olsonpm/ramda/forks","keys_url":"https://api.github.com/repos/olsonpm/ramda/keys{/key_id}","collaborators_url":"https://api.github.com/repos/olsonpm/ramda/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/olsonpm/ramda/teams","hooks_url":"https://api.github.com/repos/olsonpm/ramda/hooks","issue_events_url":"https://api.github.com/repos/olsonpm/ramda/issues/events{/number}","events_url":"https://api.github.com/repos/olsonpm/ramda/events","assignees_url":"https://api.github.com/repos/olsonpm/ramda/assignees{/user}","branches_url":"https://api.github.com/repos/olsonpm/ramda/branches{/branch}","tags_url":"https://api.github.com/repos/olsonpm/ramda/tags","blobs_url":"https://api.github.com/repos/olsonpm/ramda/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/olsonpm/ramda/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/olsonpm/ramda/git/refs{/sha}","trees_url":"https://api.github.com/repos/olsonpm/ramda/git/trees{/sha}","statuses_url":"https://api.github.com/repos/olsonpm/ramda/statuses/{sha}","languages_url":"https://api.github.com/repos/olsonpm/ramda/languages","stargazers_url":"https://api.github.com/repos/olsonpm/ramda/stargazers","contributors_url":"https://api.github.com/repos/olsonpm/ramda/contributors","subscribers_url":"https://api.github.com/repos/olsonpm/ramda/subscribers","subscription_url":"https://api.github.com/repos/olsonpm/ramda/subscription","commits_url":"https://api.github.com/repos/olsonpm/ramda/commits{/sha}","git_commits_url":"https://api.github.com/repos/olsonpm/ramda/git/commits{/sha}","comments_url":"https://api.github.com/repos/olsonpm/ramda/comments{/number}","issue_comment_url":"https://api.github.com/repos/olsonpm/ramda/issues/comments{/number}","contents_url":"https://api.github.com/repos/olsonpm/ramda/contents/{+path}","compare_url":"https://api.github.com/repos/olsonpm/ramda/compare/{base}...{head}","merges_url":"https://api.github.com/repos/olsonpm/ramda/merges","archive_url":"https://api.github.com/repos/olsonpm/ramda/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/olsonpm/ramda/downloads","issues_url":"https://api.github.com/repos/olsonpm/ramda/issues{/number}","pulls_url":"https://api.github.com/repos/olsonpm/ramda/pulls{/number}","milestones_url":"https://api.github.com/repos/olsonpm/ramda/milestones{/number}","notifications_url":"https://api.github.com/repos/olsonpm/ramda/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/olsonpm/ramda/labels{/name}","releases_url":"https://api.github.com/repos/olsonpm/ramda/releases{/id}","deployments_url":"https://api.github.com/repos/olsonpm/ramda/deployments","created_at":"2016-08-16T22:12:43Z","updated_at":"2016-08-16T22:12:45Z","pushed_at":"2016-09-09T16:48:47Z","git_url":"git://github.com/olsonpm/ramda.git","ssh_url":"git@github.com:olsonpm/ramda.git","clone_url":"https://github.com/olsonpm/ramda.git","svn_url":"https://github.com/olsonpm/ramda","homepage":"http://ramdajs.com","size":5941,"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":"b1a423e074b327c18cf364f57e652735b718ca72","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}","deployments_url":"https://api.github.com/repos/ramda/ramda/deployments","created_at":"2013-06-21T20:32:35Z","updated_at":"2016-09-09T16:57:17Z","pushed_at":"2016-09-09T16:49:27Z","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":7563,"stargazers_count":5423,"watchers_count":5423,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":366,"mirror_url":null,"open_issues_count":160,"forks":366,"open_issues":160,"watchers":5423,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ramda/ramda/pulls/1895"},"html":{"href":"https://github.com/ramda/ramda/pull/1895"},"issue":{"href":"https://api.github.com/repos/ramda/ramda/issues/1895"},"comments":{"href":"https://api.github.com/repos/ramda/ramda/issues/1895/comments"},"review_comments":{"href":"https://api.github.com/repos/ramda/ramda/pulls/1895/comments"},"review_comment":{"href":"https://api.github.com/repos/ramda/ramda/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ramda/ramda/pulls/1895/commits"},"statuses":{"href":"https://api.github.com/repos/ramda/ramda/statuses/8b840c4d80d3cc174382a26527be463d5f0a7487"}}}}
{"actor":{"display_login":"davidchambers"}}