vanadium-archive / browser

Example app: Vanadium namespace browser
BSD 3-Clause "New" or "Revised" License
1 stars 3 forks source link

Add sortedSetPush #59

Open aghassemi opened 9 years ago

aghassemi commented 9 years ago

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.