Creates a debounced function that delays invoking func until after waitMilliseconds have elapsed since the last time the debounced function was invoked.
func
waitMilliseconds
The function to debounce.
The number of milliseconds to delay.
The new debounced function.
Creates a debounced function that delays invoking
funcuntil afterwaitMillisecondshave elapsed since the last time the debounced function was invoked.