The function to debounce
The number of milliseconds to delay
A debounced version of the function
Rest ...args: Parameters<T>const debouncedSearch = debounce(searchFunction, 300);
debouncedSearch('query') // Will only execute after 300ms of no calls
// In React/React Native:
const handleInputChange = debounce((value) => {
// API call or expensive operation
}, 500);
Generated using TypeDoc
Creates a debounced function that delays execution until after a specified wait time.
✅ Works in Node.js, React, and React Native.