like undercore js code example
Example 1: find element in array underscore js
console.log(_.find(response.data, function(item) {
return item.TaskCategory.TaskCategoryId == $routeParams.TaskCategory;
}));
Example 2: underscore throttle
var throttled = _.throttle(updatePosition, 100);
$(window).scroll(throttled);