Skip to content

Commit 6739731

Browse files
committed
remove leftover console logs
1 parent ee523b8 commit 6739731

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

packages/utils/src/debounce.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,13 @@ export function debounce(func: CallbackFunction, wait: number, options?: Debounc
5656
function shouldInvoke(time: number): boolean {
5757
const timeSinceLastCall = time - (lastCallTime || 0);
5858
const timeSinceLastInvoke = time - lastInvokeTime;
59-
// console.log({ timeSinceLastCall, timeSinceLastInvoke, wait });
6059

6160
return timeSinceLastCall >= wait || (Boolean(maxWait) && timeSinceLastInvoke >= maxWait);
6261
}
6362

6463
function timerExpired(): void {
6564
const time = Date.now();
66-
// console.log('timerexpired', time);
6765
if (shouldInvoke(time)) {
68-
// console.log('invoking', time);
69-
7066
return void invokeFunc(time);
7167
}
7268

0 commit comments

Comments
 (0)