-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Remove error throwing in _.reduce & _.reduceRight. #1858
Labels
Comments
👍 |
👍 for #1841 |
Sounds great. |
so nice |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With the use of ES5 array built-ins removed from Underscore there's no longer a need to throw an error when a collection is empty and no initial value is provided in
_.reduce
and_.reduceRight
. Thoughts?This would align with changes to
_.keys
which no longer throws either.The text was updated successfully, but these errors were encountered: