Each click resets the timer. As a result, a rapid sequence of clicks produces one debounced execution after the final click, rather than one execution per click. For a better local development ...