Returns a function, that, as long as it continues to be invoked, will not be triggered. It will be called after it stops being called for wait ms. This can be usefull for ResizeObservers for example.
wait
The function you want to debounce
Period to wait in ms
Triggering on the leading edge instead of the trailing
Debounced Function
Returns a function, that, as long as it continues to be invoked, will not be triggered. It will be called after it stops being called for
waitms. This can be usefull for ResizeObservers for example.