Skip to content

fix: allowing orderBy iteratees to be arrays like _.get #4444

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

Closed

Conversation

shubhamzanwar
Copy link

@shubhamzanwar shubhamzanwar commented Aug 25, 2019

@jsf-clabot
Copy link

jsf-clabot commented Aug 25, 2019

CLA assistant check
All committers have signed the CLA.

iteratees = iteratees.map((iteratee) => {
if (Array.isArray(iteratee)) {
return iteratee.join('.')
}
Copy link
Member

Choose a reason for hiding this comment

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

We don't want to use join() here as array paths can capture things not possible or more complex in dot form.

Copy link
Author

Choose a reason for hiding this comment

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

Could you give me an example of such a case, I'll try improving this PR :)

@jdalton
Copy link
Member

jdalton commented Aug 30, 2019

Thank you @shubhamzanwar!
I'm closing this in favor of #4453.

@jdalton jdalton closed this Aug 30, 2019
@jdalton jdalton added the bug label Aug 30, 2019
@jdalton jdalton added the issue bankruptcy Closing the issue/PR to start fresh label Sep 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issue bankruptcy Closing the issue/PR to start fresh
Development

Successfully merging this pull request may close these issues.

3 participants