mirror of
https://github.com/vector-im/element-call.git
synced 2026-05-13 10:34:37 +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
|
||||
* true.
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export function and$(...inputs: Observable<boolean>[]): Observable<boolean> {
|
||||
return combineLatest(inputs, (...flags) => flags.every((flag) => flag));
|
||||
|
||||
Reference in New Issue
Block a user