Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function createObserver(tag: string) {
return Rx.Observer.create(
x => {
console.log('Next: ' + tag + x);
},
err => {
console.log('Error: ' + err);
},
() => {
console.log('Completed');
});
}