Skip to content

Instantly share code, notes, and snippets.

@pschild
Created June 22, 2019 11:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pschild/e1699ff74ae521b3415542e16fb45056 to your computer and use it in GitHub Desktop.
Save pschild/e1699ff74ae521b3415542e16fb45056 to your computer and use it in GitHub Desktop.
Notes
const { fromEvent } = Rx;
const { buffer, map, debounceTime, filter } = RxOperators;
const mouse$ = fromEvent(document, 'click')
mouse$.pipe(
buffer(mouse$.pipe(debounceTime(250))),
filter(list => list.length >= 7),
map(list => list.length)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment