function debounce()

in content/js/track-search-terms.js [21:30]


function debounce(fn, wait) {
  var timeout
  return function() {
    clearTimeout(timeout)
    var args = arguments;
    timeout = setTimeout(function() {
      fn.apply(this, args)
    }, (wait || 1))
  }
}