Actions debouncer
This package attempts to debounce actions to ensure that only one will be excecuted in a defined timeout
Intallation
npm i actions-debouncer
Usage
const Debouncer = const debouncer = console debouncerdebouncerdebouncer // Output: 3
Counstructor:
- action: Closure. Receives the parameter sent to the do method
- options: Object:
- timeout: time in milisencods which it will debounce actions. Default
300ms
.
- timeout: time in milisencods which it will debounce actions. Default