toolkit
toolkit copied to clipboard
Add 'leading' argument to debounce util
Currently if you debounce a function using the 'debounce' util, the function gets called with a delay of specified debounce time which is not always intended effect.
Adding leading
argument to debounce function would allow to debounce a function that would be triggered immediately and then wait specified time before the next call