After creating this Observable:
const numbers$:Observable<any>=Observable.create((observer)=>{
for(let i=0;i<5;i++)
observer.next(i);
})
I attempted to use map and filter as shown below:
numbers$.pipe(map(x=>{x+110})).subscribe(x=>console.log(x)) //undefined
numbers$.map((x:any)=>{x*10}).subscribe(x=>console.log(x)) //undefined
However, both of these attempts resulted in undefined. Do you have any suggestions on how I can properly utilize this?