An underscore provides a choke method. From your documents:
Creates and returns a new, throttled version of the passed function, which when called again will actually call only the original function no more than once every every millisecond of waiting. Useful for speed limit events that happen faster than you can keep up.
Now imagine an autocomplete form case. This means that if "abc" is entered within, say, 100 ms of the window, then only the search for "a" will be sent, not "bc".
Is this decisive oversight by underscore.js? What do you offer as a clean solution?
source
share