debounced.callback
return the result of the last func invocation.
Note, that if there are no previous invocations it’s mean you will get undefined. You should check it in your code properly.
Name | Type |
---|---|
T | extends (…args : any ) => ReturnType <T > |
ControlFunctions
↳ DebouncedState
...args
): undefined
| ReturnType
<T
>
Name | Type |
---|---|
...args | Parameters <T > |
undefined
| ReturnType
<T
>
void
void
Cancel pending function invocations
void
void
void
Immediately invoke pending function invocations
void
boolean
boolean
Returns true
if there are any pending function invocations
boolean