employer cover photo
employer logo

Pregunta de entrevista de Datorama

Implement debounce function

Respuesta de la entrevista

Anónimo

19 abr 2020

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