You can try:
let obs3 = obs1.isEmpty().map(x => x? obs2 : obs1;)
Will be checked quickly if this works.
Yes, according to doc , this should be good, because it isEmptyemits a boolean value that is true if the observable is empty, so you can use this to pick up the observable that you need.
source
share