employer cover photo
employer logo

Domanda di colloquio di Datorama

Implement debounce function

Risposta di colloquio

Anonimo

19 apr 2020

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