Skip to content

To

Rx.to writes the output from one stream to another stream

// Copy values from source to destination
Rx.to(source, dest);

You can also transform values as they are copied.

// Transform
Rx.to(source, dest, v=>v.name)

Rx.to returns an unsubscribe function to break the connection between source and destination.