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

Observable.pairs(dict) missing in RxJS 5 #1804

Closed
appsforartists opened this issue Jul 5, 2016 · 2 comments · Fixed by #1805
Closed

Observable.pairs(dict) missing in RxJS 5 #1804

appsforartists opened this issue Jul 5, 2016 · 2 comments · Fixed by #1805

Comments

@appsforartists
Copy link

RxJS version:
5.0.0-beta.9

Code to reproduce:
Observable.pairs({a: 1, b: 2})

Expected behavior:
An Observable of [['a', 1], ['b', 2]]

Actual behavior:
Observable.pairs is not a function

Additional information:
Reactive-Extensions/RxJS#704 says the correct way to convert a dictionary to an Observable is with Observable.pairs(dict), but that doesn't seem to be defined in RxJS 5. Is there a creation operator for dictionaries/maps/Objects?

One of the nice things about collection libraries like Immutable and underscore is that they treat both lists and dictionaries as collections, letting you {map, filter, reduce} as appropriate. To avoid bloat, it would be nice to use RxJS's collection methods for this, but I don't see any native way to operate on an Object.

@kwonoj
Copy link
Member

kwonoj commented Jul 5, 2016

Currently not all of operators are migrated from RxJS 4 to RxJS 5 yet.

kwonoj added a commit to kwonoj/rxjs that referenced this issue Jul 5, 2016
kwonoj added a commit to kwonoj/rxjs that referenced this issue Jul 5, 2016
kwonoj added a commit to kwonoj/rxjs that referenced this issue Jul 5, 2016
kwonoj added a commit to kwonoj/rxjs that referenced this issue Jul 8, 2016
kwonoj added a commit to kwonoj/rxjs that referenced this issue Jul 8, 2016
kwonoj added a commit to kwonoj/rxjs that referenced this issue Jul 9, 2016
kwonoj added a commit to kwonoj/rxjs that referenced this issue Jul 10, 2016
kwonoj added a commit to kwonoj/rxjs that referenced this issue Jul 10, 2016
kwonoj added a commit to kwonoj/rxjs that referenced this issue Jul 10, 2016
kwonoj added a commit to kwonoj/rxjs that referenced this issue Jul 11, 2016
kwonoj added a commit to kwonoj/rxjs that referenced this issue Aug 1, 2016
kwonoj added a commit to kwonoj/rxjs that referenced this issue Aug 1, 2016
@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 a pull request may close this issue.

2 participants