Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Mayankgupta688/8310617c3d88922e869217766b6c50b9 to your computer and use it in GitHub Desktop.
Save Mayankgupta688/8310617c3d88922e869217766b6c50b9 to your computer and use it in GitHub Desktop.
Sample Rxjs Code
function createObserverFromArray() {
// Creating Observable from Array
let source = from([1, 2, 3, 4, 67]);
source.subscribe({
next: function(value) {
console.log(`input data ${value}`);
}
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment