Операторы RXJS

// Operators are functions. There are two kinds of operators:
// A Pipeable Operator is a function that takes an Observable as its input and returns another Observable.
// Creation Operators are the other kind of operator, which can be called as standalone functions to create a new Observable.
import { of, map } from 'rxjs';

of(1, 2, 3)
  .pipe(map((x) => x * x))
  .subscribe((v) => console.log(`value: ${v}`));

// Logs:
// value: 1
// value: 4
// value: 9
Lazy Lark