Skip to main content

reactiveLowerThan

Alternatives: lowerThan$$, lt$$

Types

function reactiveLowerThan(
a: IObservable<any>,
b: IObservable<any>,
): IObservable<boolean>

Definition

Creates an Observable which performs a lower than comparison (<) between the values sent by two Observables, and emits the result.

Diagram

Example

Perform a lower than comparison of two Observables

const subscribe = reactiveLowerThan(
single(1),
single(2),
);

subscribe((value: boolean) => {
console.log(value);
});

Output:

true