Debounces a function to limit how often it can be called
Creates a debounced version of the provided function that delays execution
until after the specified wait time has elapsed since the last call.
Useful for optimizing performance of expensive operations triggered by
frequent events (e.g., window resize, scroll, input).
Debounces a function to limit how often it can be called
Creates a debounced version of the provided function that delays execution until after the specified wait time has elapsed since the last call. Useful for optimizing performance of expensive operations triggered by frequent events (e.g., window resize, scroll, input).