employer cover photo
employer logo

Frage im Vorstellungsgespräch bei Datorama

Implement debounce function

Antwort im Vorstellungsgespräch

Anonym

19. Apr. 2020

function debounce (fn, wait) { let t return function () { clearTimeout(t) t = setTimeout[() => fn.apply(this, arguments), wait) } }