Simple throttle in JavaScript

I would use the underscore.js or lodash source code to find a well tested version of this function. Here is the slightly modified version of the underscore code to remove all references to underscore.js itself: Please note that this code can be simplified if you don’t need all the options that underscore support. Please find below a very simple … Read more