Returns a throttled wrapper that runs callback at most once per delay ms (leading edge). The callback receives the number of wrapper calls since the previous firing (inclusive of this one).
callback
delay
Returns a throttled wrapper that runs
callbackat most once perdelayms (leading edge). The callback receives the number of wrapper calls since the previous firing (inclusive of this one).