3 ms·
The current implementation of Underscore's debounce and throttle functions (both useful) is available here: https://github.com/documentcloud/underscore/blob/ma
by jashkenas 14y ago
The current implementation of Underscore's debounce and throttle functions (both useful) is available here:
https://github.com/documentcloud/underscore/blob/master/underscore.js#L618-664 https://github.com/documentcloud/underscore/blob/master/unde...
- rthprog 14y agoOP here. I updated the post with a link to underscore's annotated source for debounce and throttle. Thanks for the tip.
- bicknergseng 14y agoHad no idea _ had debounce. Just wrote my own the other day... in CoffeeScript no less. Thanks for being awesome!