RxJS: debounce a stream only if distinct

I want to debounce a stream – but only if the source value is the same as before. How would I do this with RxJS 5?

I do not want to emit a value if the value is the same and I emitted it previously within a specified time window. I should be able to use the value from the stream – or compare function similar to distinctUntilChanged.

2 thoughts on “RxJS: debounce a stream only if distinct”

Leave a Comment