Created
June 22, 2019 11:06
-
-
Save pschild/e1699ff74ae521b3415542e16fb45056 to your computer and use it in GitHub Desktop.
Notes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://stackblitz.com/edit/angular-material-expandable-table-rows?file=app%2Ftable%2Ftable.component.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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