Creates a throttled version of a function which will only be executable once per every specified wait period.

This function is valid in v2.0.0 to v2.15.0. This function has been downloaded 4 times.


{Function} fn
The function which will esentially be rate-limited.
{number} msBetweenCalls
The amount of time to wait between calls.
{boolean=} opt_leading Optional, Default:false
Indicates whether or not the leading call or the trailing call should be executed. If false the trailing call will be made. If true the leading call will be made.


The throttled version of fn function.