init obserable with values code example
Example: init obserable with values
// RxJS v6+import { of } from 'rxjs';//emits any number of provided values in sequenceconst source = of(1, 2, 3, 4, 5);//output: 1,2,3,4,5const subscribe = source.subscribe(val => console.log(val));