UNPKG

@amxdev/throttle

Version:

Throttle a function to limit calls within a time frame.

2 lines (1 loc) 128 B
export declare function throttle<T extends (...args: any[]) => void>(func: T, limit: number): (...args: Parameters<T>) => void;