Constructor
new Debouncer(func, delay)
Parameters:
| Name | Type | Description |
|---|---|---|
func |
function | the function to debounce |
delay |
Number | the debouncing delay, in milliseconds |
- 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