fns
= { "0" }
support
* debounce
* throttle
debounce
let debounce_fn = debounce;
debounce_fn.call; // skip
debounce_fn.call; // run after 1 second
// debounce_fn.terminate() // cancel call(2)
throttle
let throttle_fn = throttle;
throttle_fn.call; // run immediate
throttle_fn.call; // skip
throttle_fn.call; // last call will run after 1 second
// throttle_fn.terminate(); // cancel call(3)