import { of } from 'rxjs';. import { tap } from 'rxjs/operators';. //emit 1,2,3,4,5. const source = of(1, 2, 3, 4, 5);. //take the first emitted value then.
確定! 回上一頁