Skip to content

Commit ca0eecb

Browse files
committed
.
1 parent 6ccc03c commit ca0eecb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/utils.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,7 @@ export const stripTrailingSlash = (url: string) => {
111111
* Debounce function to limit the number of times a function is called.
112112
* @param func The function to be debounced.
113113
* @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
114+
* @returns A debounced function that only calls the original function after the wait time has passed.
117115
*/
118116
export function debounce<T extends unknown[]>(func: (...args: T) => void, delay: number) {
119117
let timer: ReturnType<typeof setTimeout>;

0 commit comments

Comments
 (0)