Creates a function that invokes func, with the this binding and arguments
of the created function, while it's called less than n times. Subsequent
calls to the created function return the result of the last func invocation.
Type Parameters
T extends (...args:any[])=>any
Parameters
n: number
The number of calls at which func is no longer invoked.
Creates a function that invokes
func
, with thethis
binding and arguments of the created function, while it's called less thann
times. Subsequent calls to the created function return the result of the lastfunc
invocation.