find element in array underscore js code example
Example: find element in array underscore js
console.log(_.find(response.data, function(item) {
return item.TaskCategory.TaskCategoryId == $routeParams.TaskCategory;
}));
console.log(_.find(response.data, function(item) {
return item.TaskCategory.TaskCategoryId == $routeParams.TaskCategory;
}));