The function to be throttled.
Rest...args: AThe number of milliseconds to throttle invocations to.
Optionaloptions: { Options object.
Optionalleading?: booleanIf true the func will be executed on the leading edge of the timeout.
Optionaltrailing?: booleanIf true the func will be executed on the trailing edge of the timeout.
Rest...args: A
Creates a throttled function that will execute
funcat most once pertimeInMsinterval.