of(1,2,3,4,5) .pipe( switchMap( val => { if(val === 3){ // throwError creates new observable return throwError('I dont like number 2.
確定! 回上一頁