I'd like to use RxJS's just.
What I need it for is Observable.just(null), which can't be done with Observable.from().
I'm trying
import 'rxjs/add/operator/just';
But it's not present in where it should be - node_modules/rxjs/add/operator, so this fails to compile.
How can I add this operator?
That depends on the version of Rx.js:
.just method;.of method.Like this:
Rx.Observable.of(null).forEach(x => console.log(x))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With