I am learning rxjs. I have an observable from an array. I want to put some fruit in function, using subscribe and next. I wrote but not right, may I help you. Thank you so much!
const fruits = from([
"apple",
"banana",
"cherry"]);
fruits.subscribe(fruit => this.next(fruit));