I'm faced with a situation where I need to extract the first occurrence of a specific value type, followed by the next unique value of a different type.
Let's break it down with an example:
of(1,1,1,1,2,3,4)
.pipe(
// some operators
)
.subscribe(val => console.log(val);
In this case, my desired output is 1,2,3,4
It's important to note that the first "1" in the output should be from the original source and not the one right before "2."
How can I accomplish this task using rxjs
operators?