debounce af
install
$ npm install c2-debounce-af
require
var daf = ;
api
daf(fn) > debounced
creates a function which, when called, waits until there is no call
until an animation frame is triggered. then executes fn
with its
the last arguments that has been passed to debounced
.
example
var render = ; input;