{"action":"created","comment":{"url":"https://api.github.com/repos/ramda/ramda/pulls/comments/40490745","id":40490745,"diff_hunk":"@@ -0,0 +1,30 @@\n+var _curry3 = require('./internal/_curry3');\n+\n+\n+/**\n+ * If the given, non-null object has an own property at the given path, returns\n+ * the value at that path. Otherwise returns the provided default value.\n+ *\n+ * @func\n+ * @memberOf R\n+ * @category Object\n+ * @sig a -> [String] -> {k: v} -> v | a\n+ * @param {*} d The default value.\n+ * @param {Array} path The path to use.\n+ * @return {*} The data at `path`.\n+ * @example\n+ *\n+ *      R.pathOr('N/A', ['a', 'b'], {a: {b: 2}}); //=> 2\n+ *      R.pathOr('N/A', ['a', 'b'], {c: {b: 2}}); //=> \"N/A\"\n+ */\n+module.exports = _curry3(function path(d, paths, obj) {","path":"src/pathOr.js","position":20,"original_position":20,"commit_id":"c7748ae940380d333e19c23956e39bedb60e44e3","original_commit_id":"c7748ae940380d333e19c23956e39bedb60e44e3","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":"It seems to me the second parameter should be named `path`. There is, after all, only one path.\r\n","created_at":"2015-09-26T06:24:09Z","updated_at":"2015-09-26T06:24:09Z","html_url":"https://github.com/ramda/ramda/pull/1406#discussion_r40490745","pull_request_url":"https://api.github.com/repos/ramda/ramda/pulls/1406","_links":{"self":{"href":"https://api.github.com/repos/ramda/ramda/pulls/comments/40490745"},"html":{"href":"https://github.com/ramda/ramda/pull/1406#discussion_r40490745"},"pull_request":{"href":"https://api.github.com/repos/ramda/ramda/pulls/1406"}}},"pull_request":{"url":"https://api.github.com/repos/ramda/ramda/pulls/1406","id":46073442,"html_url":"https://github.com/ramda/ramda/pull/1406","diff_url":"https://github.com/ramda/ramda/pull/1406.diff","patch_url":"https://github.com/ramda/ramda/pull/1406.patch","issue_url":"https://api.github.com/repos/ramda/ramda/issues/1406","number":1406,"state":"open","locked":false,"title":"Add R.pathOr","user":{"login":"jimf","id":413269,"avatar_url":"https://avatars.githubusercontent.com/u/413269?v=3","gravatar_id":"","url":"https://api.github.com/users/jimf","html_url":"https://github.com/jimf","followers_url":"https://api.github.com/users/jimf/followers","following_url":"https://api.github.com/users/jimf/following{/other_user}","gists_url":"https://api.github.com/users/jimf/gists{/gist_id}","starred_url":"https://api.github.com/users/jimf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimf/subscriptions","organizations_url":"https://api.github.com/users/jimf/orgs","repos_url":"https://api.github.com/users/jimf/repos","events_url":"https://api.github.com/users/jimf/events{/privacy}","received_events_url":"https://api.github.com/users/jimf/received_events","type":"User","site_admin":false},"body":"Implement R.pathOr as per the invitation for PR in #1054.","created_at":"2015-09-26T02:21:02Z","updated_at":"2015-09-26T06:24:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f773c5c826ea2e12d40d89b8b8a2a83750ef6168","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ramda/ramda/pulls/1406/commits","review_comments_url":"https://api.github.com/repos/ramda/ramda/pulls/1406/comments","review_comment_url":"https://api.github.com/repos/ramda/ramda/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ramda/ramda/issues/1406/comments","statuses_url":"https://api.github.com/repos/ramda/ramda/statuses/c7748ae940380d333e19c23956e39bedb60e44e3","head":{"label":"jimf:path-or","ref":"path-or","sha":"c7748ae940380d333e19c23956e39bedb60e44e3","user":{"login":"jimf","id":413269,"avatar_url":"https://avatars.githubusercontent.com/u/413269?v=3","gravatar_id":"","url":"https://api.github.com/users/jimf","html_url":"https://github.com/jimf","followers_url":"https://api.github.com/users/jimf/followers","following_url":"https://api.github.com/users/jimf/following{/other_user}","gists_url":"https://api.github.com/users/jimf/gists{/gist_id}","starred_url":"https://api.github.com/users/jimf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimf/subscriptions","organizations_url":"https://api.github.com/users/jimf/orgs","repos_url":"https://api.github.com/users/jimf/repos","events_url":"https://api.github.com/users/jimf/events{/privacy}","received_events_url":"https://api.github.com/users/jimf/received_events","type":"User","site_admin":false},"repo":{"id":43184942,"name":"ramda","full_name":"jimf/ramda","owner":{"login":"jimf","id":413269,"avatar_url":"https://avatars.githubusercontent.com/u/413269?v=3","gravatar_id":"","url":"https://api.github.com/users/jimf","html_url":"https://github.com/jimf","followers_url":"https://api.github.com/users/jimf/followers","following_url":"https://api.github.com/users/jimf/following{/other_user}","gists_url":"https://api.github.com/users/jimf/gists{/gist_id}","starred_url":"https://api.github.com/users/jimf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimf/subscriptions","organizations_url":"https://api.github.com/users/jimf/orgs","repos_url":"https://api.github.com/users/jimf/repos","events_url":"https://api.github.com/users/jimf/events{/privacy}","received_events_url":"https://api.github.com/users/jimf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jimf/ramda","description":":ram: Practical functional Javascript","fork":true,"url":"https://api.github.com/repos/jimf/ramda","forks_url":"https://api.github.com/repos/jimf/ramda/forks","keys_url":"https://api.github.com/repos/jimf/ramda/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jimf/ramda/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jimf/ramda/teams","hooks_url":"https://api.github.com/repos/jimf/ramda/hooks","issue_events_url":"https://api.github.com/repos/jimf/ramda/issues/events{/number}","events_url":"https://api.github.com/repos/jimf/ramda/events","assignees_url":"https://api.github.com/repos/jimf/ramda/assignees{/user}","branches_url":"https://api.github.com/repos/jimf/ramda/branches{/branch}","tags_url":"https://api.github.com/repos/jimf/ramda/tags","blobs_url":"https://api.github.com/repos/jimf/ramda/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jimf/ramda/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jimf/ramda/git/refs{/sha}","trees_url":"https://api.github.com/repos/jimf/ramda/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jimf/ramda/statuses/{sha}","languages_url":"https://api.github.com/repos/jimf/ramda/languages","stargazers_url":"https://api.github.com/repos/jimf/ramda/stargazers","contributors_url":"https://api.github.com/repos/jimf/ramda/contributors","subscribers_url":"https://api.github.com/repos/jimf/ramda/subscribers","subscription_url":"https://api.github.com/repos/jimf/ramda/subscription","commits_url":"https://api.github.com/repos/jimf/ramda/commits{/sha}","git_commits_url":"https://api.github.com/repos/jimf/ramda/git/commits{/sha}","comments_url":"https://api.github.com/repos/jimf/ramda/comments{/number}","issue_comment_url":"https://api.github.com/repos/jimf/ramda/issues/comments{/number}","contents_url":"https://api.github.com/repos/jimf/ramda/contents/{+path}","compare_url":"https://api.github.com/repos/jimf/ramda/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jimf/ramda/merges","archive_url":"https://api.github.com/repos/jimf/ramda/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jimf/ramda/downloads","issues_url":"https://api.github.com/repos/jimf/ramda/issues{/number}","pulls_url":"https://api.github.com/repos/jimf/ramda/pulls{/number}","milestones_url":"https://api.github.com/repos/jimf/ramda/milestones{/number}","notifications_url":"https://api.github.com/repos/jimf/ramda/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jimf/ramda/labels{/name}","releases_url":"https://api.github.com/repos/jimf/ramda/releases{/id}","created_at":"2015-09-26T01:27:49Z","updated_at":"2015-09-26T01:27:51Z","pushed_at":"2015-09-26T02:20:03Z","git_url":"git://github.com/jimf/ramda.git","ssh_url":"git@github.com:jimf/ramda.git","clone_url":"https://github.com/jimf/ramda.git","svn_url":"https://github.com/jimf/ramda","homepage":"http://ramdajs.com","size":11372,"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":"03339bb60c2969c570e438ed7a262dc938845728","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-09-25T23:48:14Z","pushed_at":"2015-09-26T02:21:02Z","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":11372,"stargazers_count":2826,"watchers_count":2826,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":212,"mirror_url":null,"open_issues_count":82,"forks":212,"open_issues":82,"watchers":2826,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ramda/ramda/pulls/1406"},"html":{"href":"https://github.com/ramda/ramda/pull/1406"},"issue":{"href":"https://api.github.com/repos/ramda/ramda/issues/1406"},"comments":{"href":"https://api.github.com/repos/ramda/ramda/issues/1406/comments"},"review_comments":{"href":"https://api.github.com/repos/ramda/ramda/pulls/1406/comments"},"review_comment":{"href":"https://api.github.com/repos/ramda/ramda/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ramda/ramda/pulls/1406/commits"},"statuses":{"href":"https://api.github.com/repos/ramda/ramda/statuses/c7748ae940380d333e19c23956e39bedb60e44e3"}}}}