Skip to content
Back to Glossary
GeneralBeginner

What is Debouncing?

A programming technique that limits the rate of function execution by waiting until a pause in rapid events occurs.

Code Example

function debounce(fn, delay) {
  let timer;
  return (...args) => {
    clearTimeout(timer);
    timer = setTimeout(() => fn(...args), delay);
  };
}

No related content found yet for this term. Check back later!