Created
May 25, 2017 21:43
-
-
Save cmdrkeene/225d6e6076c05caa906629de52a9efbd to your computer and use it in GitHub Desktop.
Debounce - Throttle JS function call (minified)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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