homebridge-tessie
Version:
Connect Homebridge to your Tessie account.
11 lines • 338 B
JavaScript
/* eslint-disable @typescript-eslint/no-explicit-any */
export function debounce(func, waitFor) {
let timeoutId = null;
return (...args) => {
if (timeoutId !== null) {
clearTimeout(timeoutId);
}
timeoutId = setTimeout(() => func(...args), waitFor);
};
}
//# sourceMappingURL=debounce.js.map