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

feat(reduce): add thisArg parameter #1001

Closed
wants to merge 1 commit into from

Conversation

luisgabriel
Copy link
Contributor

Adds thisArg as the third argument to have symmetry with native Array.prototype.reduce().

Relates to #878 and #996.

@benlesh
Copy link
Member

benlesh commented Dec 8, 2015

LGTM

Adds thisArg as third argument to have symmetry with native Array.prototype.reduce().

Relates to ReactiveX#878 and ReactiveX#996.
@luisgabriel
Copy link
Contributor Author

Just updated with a small bugfix on ScalarObservable::reduce() and adding a test case to cover it.

@kwonoj
Copy link
Member

kwonoj commented Dec 8, 2015

Looks good to me too. merging..

@mattpodwysocki
Copy link
Collaborator

@kwonoj please do not merge. There is no thisArg for Array.prototype.reduce

@kwonoj
Copy link
Member

kwonoj commented Dec 8, 2015

@mattpodwysocki OK, holding. any concerns?

@mattpodwysocki
Copy link
Collaborator

@kwonoj yes, see above comment. This is an unneeded PR.

@luisgabriel
Copy link
Contributor Author

Fair enough. I think I saw reduce in some issue. Sorry about that.

@luisgabriel luisgabriel closed this Dec 8, 2015
@kwonoj
Copy link
Member

kwonoj commented Dec 8, 2015

Whew, appreciate @mattpodwysocki for catching and pointing this out. I could make mistake.

@benlesh
Copy link
Member

benlesh commented Dec 9, 2015

👍 thanks @mattpodwysocki

@luisgabriel luisgabriel deleted the reduce-thisArg branch December 15, 2015 18:16
@lock
Copy link

lock bot commented Jun 7, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants