Repository navigation
New module: debounce.js
Adds debounce.js:
debounce(fn, delay)- runsfnonly after the caller stops triggering it, for search-as-you-type and similar input handling.throttle(fn, delay)- runsfnat most once per interval, firing immediately and again at the end of the window so the last call's arguments are not lost. Useful forscroll,resizeandmousemove.