Rocky_Mountain_Vending/.pnpm-store/v10/files/90/effa7b00abcc916868d5b00f8c4f952b075085a68cda2faee2028ec06a54a63426b03a2ce75e4be6c1b4452d2368cc94bf8f26818fd723c5c39ed6ca4b25f9
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

39 lines
1.2 KiB
Text

import { MonoTypeOperatorFunction } from '../types';
import { filter } from './filter';
/**
* Returns an Observable that skips the first `count` items emitted by the source Observable.
*
* ![](skip.png)
*
* 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
*
* ```ts
* 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...
* ```
*
* @see {@link last}
* @see {@link skipWhile}
* @see {@link skipUntil}
* @see {@link skipLast}
*
* @param count The number of times, items emitted by source Observable should be skipped.
* @return A function that returns an Observable that skips the first `count`
* values emitted by the source Observable.
*/
export function skip<T>(count: number): MonoTypeOperatorFunction<T> {
return filter((_, index) => count <= index);
}