Back to All Challenges
advanced+35 Points

Implement a Debounce Function

Implement debounce(fn, delay) that delays invoking fn until after delay milliseconds have elapsed since the last time it was invoked.

Instructions:

Write a high-order function `debounce(fn, delay)` returning a new debounced function.

Code Solution:
JAVASCRIPT Editor3 lines