The function to throttle.
The number of milliseconds to throttle by.
A throttled version of the function.
Rest ...args: Parameters<T>const throttledScroll = throttle(handleScroll, 100);
window.addEventListener('scroll', throttledScroll);
// In React/React Native:
const handleResize = throttle(() => {
// Update layout
}, 250);
Generated using TypeDoc
Creates a throttled function that limits the rate at which the provided function can be called. The function will be called at most once per specified delay period.