Exercise - Connect Operator
Exercise
The goal of this exercise is to learn how to create a multicasted Observable using the connect()
operator.
- Open exercise on codesandbox.
- I've created the
source
Observable that synchronously emits next notifications whose integer values are 1 through 5. - Use the
connect()
operator and specify theselector
function. - Within the
selector
function, filter next notification values from the not-yet-connectedmulticasted
Observable for even numbers only. - Finally,
subscribe()
to the connected Observable.