Signatura
Firma
skip<T>(count: number): MonoTypeOperatorFunction<T>
Parámetros
Retorna
MonoTypeOperatorFunction<T>
: Un Observable que se salta valores emitidos por el Observable fuente.
import { skip } from "rxjs/operators";
import { from, fromEvent } from "rxjs";
const click$ = fromEvent(document, "click");
click$.pipe(skip(5)).subscribe(console.log);
// Salida: ......... ClickEvent {}...
import { skip } from "rxjs/operators";
import { from } from "rxjs";
const language$ = from([
{ name: "Java", type: "Orientado a objetos" },
{ name: "Ruby", type: "Multiparadigma" },
{ name: "Haskell", type: "Funcional" },
]);
language$.pipe(skip(1)).subscribe(console.log);
// Salida: { name: "Ruby", type: "Multiparadigma" }, { name: "Haskell", type: "Funcional" }