Returns a Transform that applies f to the observable.
Transform
f
subchain() can be used to create logical groups in a longer chain or to make parts of a chain reusable.
subchain()
ows .fromEvent(button, "click") .pipeThrough( ows.subchain(o => o .pipeThrough(ows.map(() => fetch("/stockData"))) .pipeThrough(ows.map(r => r.json())) .pipeThrough(ows.filter(data => data.tags.contains(importTag))) ) ) .pipeTo( ows.discard(data => { // ... }) );
Type of items emitted by the original observable.
Type of items returned by the observable f returns.
Function that will be applied to the observable.
Transform that applies f to the observable.
Generated using TypeDoc
Returns a
Transform
that appliesf
to the observable.subchain()
can be used to create logical groups in a longer chain or to make parts of a chain reusable.ows .fromEvent(button, "click") .pipeThrough( ows.subchain(o => o .pipeThrough(ows.map(() => fetch("/stockData"))) .pipeThrough(ows.map(r => r.json())) .pipeThrough(ows.filter(data => data.tags.contains(importTag))) ) ) .pipeTo( ows.discard(data => { // ... }) );