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

Add sortedSetPush #59

Open
aghassemi opened this issue Apr 22, 2015 · 0 comments
Open

Add sortedSetPush #59

aghassemi opened this issue Apr 22, 2015 · 0 comments

Comments

@aghassemi
Copy link
Contributor

In many cases, we want to have a set of namespace items or glob results.
See src/onboarding.js or src/services/namespace/service.js

sortedPush works well when the array is allowed to have repeats. We have implemented this already.
sortedSetPush would go a step farther and first ensure that the item to be added isn't already present in the array.

This would be nice to have, but we have workarounds in place already. Too bad there's no observ-set in Mercury.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants