console . log ( `of_from.ts` ) ; import { of , from , Observable } from "rxjs" ; const emitter = of ( 1 , 2 , 3 , 4 ) ; emitter . subscribe ( ( value ) => { console . log ( `value: ${ value }` ) ; } ) ; const emitArray = < Observable < number > > from ( [ 1 , 2 , 3 , 4 ] ) ; emitArray . subscribe ( ( value ) => { console . log ( `arr: ${ value }` ) ; } ) ;