We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ccc03c commit ca0eecbCopy full SHA for ca0eecb
src/utils.ts
@@ -111,9 +111,7 @@ export const stripTrailingSlash = (url: string) => {
111
* Debounce function to limit the number of times a function is called.
112
* @param func The function to be debounced.
113
* @param wait The time to wait before calling the function.
114
- * @param immediate Whether to call the function immediately.
115
- * @returns A debounced function.
116
- * @see https://davidwalsh.name/javascript-debounce-function
+ * @returns A debounced function that only calls the original function after the wait time has passed.
117
*/
118
export function debounce<T extends unknown[]>(func: (...args: T) => void, delay: number) {
119
let timer: ReturnType<typeof setTimeout>;
0 commit comments