Throttle a function with a given delay. Similar to lodash.
Throttling F for a delay of D means that F will be called no more than 1 time every D. In this implementation, F is called after D has passed since the previous non-throttled invocation
F
D
Function to throttle
Throttle delay
Throttle a function with a given delay. Similar to lodash.
Throttling
Ffor a delay ofDmeans thatFwill be called no more than 1 time everyD. In this implementation,Fis called afterDhas passed since the previous non-throttled invocation