underscore each timeout code example
Example 1: underscore js join
_.reduce(['x', 'y', 'z'], function(accumulator, currentItem) {
return accumulator + currentItem;
});
// xyz
Example 2: underscore throttle
var throttled = _.throttle(updatePosition, 100);
$(window).scroll(throttled);