Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docs to path. #3010

Merged
merged 2 commits into from
Jan 22, 2022
Merged

Add docs to path. #3010

merged 2 commits into from
Jan 22, 2022

Conversation

AndrewSouthpaw
Copy link
Contributor

Addresses discussion and suggestions in #3007 to clarify documentation of path.

I'm not sure if any of these doc edits would be welcome, but I thought I'd at least offer them. Feel free to tweak or reject if it doesn't match the style.

source/path.js Outdated Show resolved Hide resolved
@CrossEye
Copy link
Member

Such suggestions are always welcome!

In this case, I disagree on the details. I'll try to think of some more comprehensive text this weekend.

@AndrewSouthpaw
Copy link
Contributor Author

👍 Let me know if there's more I can do to help.

@CrossEye
Copy link
Member

CrossEye commented May 8, 2020

Yeah, sorry. I dropped this entirely. I will look again.

source/path.js Outdated Show resolved Hide resolved
source/path.js Show resolved Hide resolved
source/path.js Outdated
@@ -11,7 +13,7 @@ import paths from './paths';
* @typedefn Idx = String | Int
* @sig [Idx] -> {a} -> a | Undefined
* @param {Array} path The path to use.
* @param {Object} obj The object to retrieve the nested property from.
* @param {Object} obj The object or array to retrieve the nested property from.
* @return {*} The data at `path`.
* @see R.prop, R.nth
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also mention assocPath/dissocPath here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@customcommander
Copy link
Member

@CrossEye I rebased against the master branch and added your suggestions.

@CrossEye CrossEye merged commit f0de0fd into ramda:master Jan 22, 2022
@AndrewSouthpaw AndrewSouthpaw deleted the add-path-docs branch January 22, 2022 21:29
@AndrewSouthpaw
Copy link
Contributor Author

Oops I totally forgot about this, thanks for carrying it across the finish line, @customcommander!

@adispring adispring mentioned this pull request Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants