Код: Выделить всё
of([1, 2, 3, 4, 5, 6])
.pipe(
filter((val) => val < 5)
)
.subscribe((data) => console.log(data)); // 1--2--3--4--
Подробнее здесь: https://stackoverflow.com/questions/793 ... able-block
Код: Выделить всё
of([1, 2, 3, 4, 5, 6])
.pipe(
filter((val) => val < 5)
)
.subscribe((data) => console.log(data)); // 1--2--3--4--