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.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf3017-31e3a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf3017-31e3a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?