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

Breaking: Optimization for compose #1700

Merged
merged 2 commits into from
Jun 24, 2014
Merged

Conversation

megawac
Copy link
Collaborator

@megawac megawac commented Jun 22, 2014

This change will break for the _.compose() case. I'm for throwing an Error immediately or return a noop if no arguments are given. Returning noop will be obviously be non breaking

http://jsperf.com/lodash-compose-vs-underscore/2

@jdalton
Copy link
Contributor

jdalton commented Jun 22, 2014

I do this optimization in edge too, though I check if all arguments are functions upfront and throw early.

@megawac
Copy link
Collaborator Author

megawac commented Jun 22, 2014

Ya #1576, #1577

jashkenas added a commit that referenced this pull request Jun 24, 2014
Breaking: Optimization for compose
@jashkenas jashkenas merged commit 673df16 into jashkenas:master Jun 24, 2014
@megawac megawac deleted the compose branch June 24, 2014 15:00
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.

4 participants