What's difference between “reduce” and “scan”
问题 I'm studying RXJS and stuck with the problem: the same code with operators "reduce" and "scan" works in different ways, but I think that must return equal result. Example below. Please help. const txtElement1 = document.getElementById('txt1'); const txtElement2 = document.getElementById('txt2'); const txtElement3 = document.getElementById('txt3'); // function return Observable function get(array, initValue) { return Rx.Observable.create(observer => { let timer = initValue; array.forEach(item