Is it possible for .subscribe to regularly listen to an array and its elements, and console.log new ones whenever they are being pushed on to the array?
Here are some code that i was experimenting with
let arr = [1, 2, 3, 4, 5]
let arraySource = from(arr);
//output: 1,2,3,4,5
let subscribe = arraySource.subscribe(val => console.log(val));
setTimeout(() => {
arr.push(6);
},2000);
Thanks in advance