Skip to content

Instantly share code, notes, and snippets.

@350d 350d/debounce.js
Last active Aug 29, 2015

What would you like to do?
Javascript debounce
Function.prototype.debounce = function(delay) {
var timeout, callback = this;
return function() {
timeout = setTimeout(callback, delay);
// OR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.