mirror of
https://github.com/vector-im/element-call.git
synced 2026-09-04 21:35:19 +00:00
mark $and as public as is a very useful function which could be used by the sdk target
This commit is contained in:
@@ -116,6 +116,8 @@ export function getValue<T>(state$: Observable<T>): T {
|
|||||||
/**
|
/**
|
||||||
* Creates an Observable that has a value of true whenever all its inputs are
|
* Creates an Observable that has a value of true whenever all its inputs are
|
||||||
* true.
|
* true.
|
||||||
|
*
|
||||||
|
* @public
|
||||||
*/
|
*/
|
||||||
export function and$(...inputs: Observable<boolean>[]): Observable<boolean> {
|
export function and$(...inputs: Observable<boolean>[]): Observable<boolean> {
|
||||||
return combineLatest(inputs, (...flags) => flags.every((flag) => flag));
|
return combineLatest(inputs, (...flags) => flags.every((flag) => flag));
|
||||||
|
|||||||
Reference in New Issue
Block a user