The function to be throttled.
Rest
...args: AThe number of milliseconds to throttle invocations to.
Optional
options: { Options object.
Optional
leading?: booleanIf true
the func
will be executed on the leading edge of the timeout.
Optional
trailing?: booleanIf true
the func
will be executed on the trailing edge of the timeout.
Rest
...args: A
Creates a throttled function that will execute
func
at most once pertimeInMs
interval.