Debounces a function
the function that needs debouncing
the timeout for the debounce in milliseconds
the debounced function
Debounces a function