```
var subcategories = category_array.map(function() {
  ...
  return category["subcategories"];
})
```