← Code LabJavaScript0/50 solved · 0%
Patterns · medium

35. Debounce

Coalesce rapid calls.

Write `debounce(fn, ms)` returning a function that only calls `fn` once the calls stop.
Required in your answer: setTimeoutclearTimeout