Constructor
new Debouncer(func, delayopt)
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
func |
function | the function to debounce |
||
delay |
Number |
<optional> |
0 | the debouncing delay, in milliseconds (defaults to |
- Source:
Methods
call()
Call function ensuring debouncing condition. Any previous pending call is cancelled. Arguments are passed to the function when called.
- Source:
isPending() → {Boolean}
Tell if there is a pending call.
- Source:
Returns:
- Type
- Boolean