reactiveGreaterThan
Alternatives: greaterThan$$
, gt$$
Types
function reactiveGreaterThan(
a: IObservable<any>,
b: IObservable<any>,
): IObservable<boolean>
Definition
Creates an Observable which performs a greater than comparison (>
) between the values sent by two Observables, and emits the result.
Diagram
Example
Perform a greater than comparison of two Observables
const subscribe = reactiveGreaterThan(
single(2),
single(1),
);
subscribe((value: boolean) => {
console.log(value);
});
Output:
true