skip to content

of

 

Creates an Observable that will immediately emit all passed arguments

1
2
3
4
5
6
7
const { rxObserver } = require('api/v0.3');
const { of } = require('rxjs');

of(1, 2, 3)
  .subscribe(rxObserver());

0msstartcomplete11 22 33

Use from to create a stream from an iterable value or a promise