- RxJS Tutorial
- RxJS - Home
- RxJS - Overview
- RxJS - Environment Setup
- RxJS - Latest Updates
- RxJS - Observables
- RxJS - Operators
- RxJS - Working with Subscription
- RxJS - Working with Subjects
- RxJS - Working with Scheduler
- RxJS - Working with RxJS & Angular
- RxJS - Working with RxJS & ReactJS
- RxJS Useful Resources
- RxJS - Quick Guide
- RxJS - Useful Resources
- RxJS - Discussion
RxJS - Creation Operator of
This operator will take in the arguments passed and convert them to observable.
Syntax
of(input: array[]):Observable
Parameters
input − The input given is an array form.
Return value
It returns an observable with values from the source observable.
Example
import { of } from 'rxjs'; let ints = of(2,4,6,8,10,12); ints.subscribe(x => console.log(x));
Output
Advertisements