Skip to content

@continuum-js/std


@continuum-js/std / sampleWith

Function: sampleWith() ​

sampleWith<A, B>(trigger, b): Stream<B>

Defined in: index.ts:130

Sample b at each occurrence of trigger, discarding the trigger's value.

Type Parameters ​

A ​

A

B ​

B

Parameters ​

trigger ​

Stream<A>

b ​

State<B>

Returns ​

Stream<B>