Skip to content

Commit

Permalink
docs(windowCount): fix examples (#4546)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tane Morgan authored and niklas-wortmann committed Feb 28, 2019
1 parent 6f5dc2f commit 877b008
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/internal/operators/windowCount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ import { OperatorFunction } from '../types';
* Ignore every 3rd click event, starting from the first one
* ```javascript
* import { fromEvent } from 'rxjs';
* import { windowCount, map, mergeAll } from 'rxjs/operators';
* import { windowCount, map, mergeAll, skip } from 'rxjs/operators';
*
* const clicks = fromEvent(document, 'click');
* const result = clicks.pipe(
* windowCount(3)),
* map(win => win.skip(1)), // skip first of every 3 clicks
* mergeAll(), // flatten the Observable-of-Observables
* windowCount(3),
* map(win => win.pipe(skip(1))), // skip first of every 3 clicks
* mergeAll() // flatten the Observable-of-Observables
* );
* result.subscribe(x => console.log(x));
* ```
Expand Down

0 comments on commit 877b008

Please sign in to comment.