observ-debounce

1.1.1 • Public • Published

observ-debounce

A debounced observ that will only notify every N milliseconds.

Example

var Debounce = require('observ-debounce')

var debounce = Debounce(200) //5 times a second, max.

//register a listener
debounce(function (s) {
  console.log(s)
})

while(reallyFast)//update the value lots!
  debounce.set(newValue)

License

MIT

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i observ-debounce

    Weekly Downloads

    88

    Version

    1.1.1

    License

    MIT

    Last publish

    Collaborators

    • dominictarr