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