1.0.1 • Published 9 years ago

frame-debounce v1.0.1

Weekly downloads
59
License
ISC
Repository
github
Last release
9 years ago

frame-debounce stable

Decorate a function so that it only fires once per frame, using requestAnimationFrame in the browser and setImmediate or process.nextTick in node.

Usage

NPM

debounced = debounce(fn, immediate)

Returns a decorated version of fn, that can only be called once per frame

See Also

License

MIT. See LICENSE.md for details.