```
var category = findById(category_id, category_array);

function findById(id, array) {
  return _.find(array, function(item) {
    return item.id === id
  });
}

return category["transaction_types"];
return get_transaction_types_for_category(subcategory_id, category["subcategories"]);
```