The following code generates incremental single-line log in the Chrome Dev Tools console:
var run = function() {
console.log('hello');
}
setInterval(run, 250);
When I use lodash throttle wrapper I see multiline log:
var run = function() {
console.log('hello');
}
var _run = _.throttle(run, 250);
setInterval(_run, 20);
All log entries link to the second source code line which is console.log('hello'); in both versions. Why there is such a splitting for throttled logging?


