Skip to content

Instantly share code, notes, and snippets.

@cmdrkeene
Created May 25, 2017 21:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmdrkeene/225d6e6076c05caa906629de52a9efbd to your computer and use it in GitHub Desktop.
Save cmdrkeene/225d6e6076c05caa906629de52a9efbd to your computer and use it in GitHub Desktop.
Debounce - Throttle JS function call (minified)
function debounce(a,b,c){var d;return function(){var e=this,f=arguments;clearTimeout(d),d=setTimeout(function(){d=null,c||a.apply(e,f)},b),c&&!d&&a.apply(e,f)}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment