All questions

Advanced · JavaScript · Async

Implement debounce

Commonly asked: Frontend-heavy SDET and product-company rounds · ~15 min

Write debounce(fn, ms) returning a function that delays calling fn until ms have passed since the last call.

Checking your membership…