-
Notifications
You must be signed in to change notification settings - Fork 7.1k
add order by behaviour with array similar to get method #4453
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 order by behaviour with array similar to get method #4453
Conversation
Hi @Mohit21GoJs! Could you rebase this PR without the package-lock.json update? |
Updated @jdalton , please review. |
.internal/baseOrderBy.js
Outdated
return (value) => baseGet(value, iteratee) | ||
} | ||
return iteratee | ||
}) : [(value) => value] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have a method called identity
that can me used for (value) => value
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jdalton the existing identity was defined in ../test/util.js, hence i defined a identity function in this file as there is no other util file, let me know if it makes sense.
Ah cool. Thanks @Mohit21GoJs! |
@jdalton Shall we backport this to |
@falsyvalues That would be a good idea! |
fix issue #4438