frame-debounce

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

frame-debounce

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

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

MIT. See LICENSE.md for details.