- Preparing search index...
- The search index is not available
billd-monorepo
- debounce(fn: Function, delay: number, leading?: boolean): { cancel: any; (): Promise<unknown> }
-
Parameters
-
fn: Function
-
delay: number
-
leading: boolean = false
Returns { cancel: any; (): Promise<unknown> }
-
- (): Promise<unknown>
-
Returns Promise<unknown>
-
cancel:function
- cancel(): void
-
Returns void
Description
防抖函数(Promise)
Returns