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