Skip to content

Commit

Permalink
Add examples for debounce operator
Browse files Browse the repository at this point in the history
  • Loading branch information
nmuldavin committed Dec 2, 2017
1 parent 0e28586 commit c013ef3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/debounce.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
* [Debounces](https://davidwalsh.name/javascript-debounce-function) an Observable stream
* by a specified number of milliseconds.
*
* @example
* debounce(clickEvents, 300)
*
* @example
* // if available on Observable.prototype
* clickEvents
* .debounce(300)
* .map(handler)
*
* @param {Observable} input Input Observable
* @param {number} ms Milliseconds to debounce by
* @return {Observable} Debounced Observable
Expand Down

0 comments on commit c013ef3

Please sign in to comment.