Skip to main content

reactiveOrMany

Alternatives: orMany$$, orM$$

Types

function reactiveOrMany(
...observables: IObservable<boolean>[]
): IObservable<boolean>

Definition

Creates an Observable which performs the boolean OR operation (||) between the values sent by many Observables, and emits the result.

Diagram

Example

Perform the boolean "OR" of three Observables

const subscribe = reactiveOrMany(
single(false),
single(true),
single(false),
);

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

Output:

true