Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

skip

Returns an Observable that skips the first count items emitted by the source Observable.

Skips the values until the sent notifications are equal or less than provided skip count. It raises an error if skip count is equal or more than the actual number of emits and source raises an error.

Example

Skip the values before the emission

import { interval, skip } from 'rxjs';

// emit every half second
const source = interval(500);
// skip the first 10 emitted values
const result = source.pipe(skip(10));

result.subscribe(value => console.log(value));
// output: 10...11...12...13...
function skip<T>(count: number): MonoTypeOperatorFunction<T>;
§
skip<T>(count: number): MonoTypeOperatorFunction<T>
[src]

§Type Parameters

§Parameters

§
count: number
[src]
  • The number of times, items emitted by source Observable should be skipped.

§Return Type

§

A function that returns an Observable that skips the first count values emitted by the source Observable.