- throttle<T>(func, wait, options?): ThrottleFunc<T>
Type Parameters
T extends ((...args) => any)
Parameters
func: T
wait: number
options: {
leading?: boolean;
trailing?: boolean;
} = {}
Optional
leading?: boolean
Optional
trailing?: boolean
Returns ThrottleFunc<T>
EN: Throttle
ZH: 节流
Usage:
Reference: Lodash