Rev 3503 | | Comparar con el anterior | Ultima modificación | Ver Log |
export const debounce = (func, timeout = 300) => {
let timer;
return (...args) => {
clearTimeout(timer);
timer = setTimeout(() => {
func.apply(this, args);
}, timeout);
};