rxjs: switchIfEmpty. ... const switchIfEmpty = <I, O>(to: Observable<O>) => (o: Observable<I>) =>. o.pipe(. throwIfEmpty(),. catchError(() => to),. );.
確定! 回上一頁