title: can you catch the rxjs filter like catching an either left
body: <p>I would like to know if it's possible to catch when the condition of the rxjs filter condition isn't true.</p>
  <p>this is what I have:</p>
  <pre><code>    of(1)
      .pipe(
        map((d) =&gt; d + 1),
        filter((d) =&gt; d === 0),
        map((d) =&gt; d + 1), // this will go in because of the filter
      )
      .toPromise()
      .then((d) =&gt; console.log(d)) // display indefined
      .catch(() =&gt; console.log(&quot;ERRRRRROOOOOOR&quot;)) // do not display :( 
  </code></pre>
  <p>In this case, I would like to return a specific data (or at least throw) when the filter condition isn't true.</p>
  <p>I tried to add parameters to the filter</p>
  <pre><code>filter(filter((d) =&gt; d === 0), &quot;john doe&quot;)
  </code></pre>
  <p>But this doesn't display the string,</p>
  <p>I guess the equivalent in fp-ts is to catch the either left but I don't know if you can do functional programing with rxjs or if you can only work with observable.
  The fact that you can using pipe and multiple operator enable the use of this library in my project so it will be good to avoid changing the library</p>
  <p>Thanks a lot !</p>