UNPKG

debounce-throttling

Version:

debounce-throttle is a lightweight npm package designed to simplify and enhance event handling in JavaScript applications. With this package, developers can effortlessly implement debouncing and throttling functionalities to optimize performance and impro

5 lines (3 loc) 198 B
declare const throttle: (cb: Function, time: number) => ((...args: any[]) => void); declare const debounce: (cb: Function, time: number) => (...args: any[]) => void; export { debounce, throttle };