Skip to content

Instantly share code, notes, and snippets.

@banujan6
Last active September 5, 2021 09:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save banujan6/7bb9b05fe49e9b0931b0cef08672e5ad to your computer and use it in GitHub Desktop.
Save banujan6/7bb9b05fe49e9b0931b0cef08672e5ad to your computer and use it in GitHub Desktop.
medium-rxjs-operators-creation
import { of } from 'rxjs';
// of is a Creation Operator,
// That can create new Observable by taking the parameters as the emitting values.
of("First Data", "Second Data")
.subscribe(data => console.log(data));
// CONSOLE OUTPUT ------------------------
// > First Data
// > Second Data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment