The problem of rxjs processing and converting digital sequences

the existing code is as follows:

const start = 2017;
const source = range(start - 10, 10);
source.subscribe(console.log);

is there a better way for question 2?

Mar.02,2021

the first one can take advantage of the bufferCount operator.

    const source = Observable.range(1, 5).bufferCount(5);
    source.subscribe(console.log);

there is nothing wrong with the second one, so I won't think about it.

Menu