debounce
export function debounce<T extends unknown[], V>(cb: (...args: [
...T
]) => V, timeout?: number, resetTimer?: boolean): Debouncer<T, V>;
A standard debounce function.
Parameters
Parameter | Description |
---|---|
cb | The function to call. |
timeout | The timeout to wait. |
resetTimer | Whether to reset the timeout when the debouncer is called again. |