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

_.minBy should be _.min #230

Merged
merged 2 commits into from
Feb 12, 2018
Merged

_.minBy should be _.min #230

merged 2 commits into from
Feb 12, 2018

Conversation

tylerlong
Copy link
Contributor

@tylerlong tylerlong commented Feb 11, 2018

Because there is only one argument for the method.

I know from lodash 3 to loadash 4 you need to change some min to minBy, but not all of them should be changed.

Because there is only one argument for the method.

I know from lodash 3 to loadash 4 you need to change some `min` to `minBy`, but not all of them should be changed.
@cpettitt
Copy link
Collaborator

Looks good. This is functionally equivalent with the original code because minBy defaults to identity for its second arg, but this change makes the code clearer.

@cpettitt cpettitt merged commit 7e050f8 into dagrejs:master Feb 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants