Debounce helps control how often a function can run. When an event happens, debounce waits for a set time before letting the function run. If the same event happens again during the wait, the timer resets and waits again.
Implementation
Resources
medium.com/@griffinmichl
greatfrontend.com/questions/javascript/debounce