I have a array of object called elements, and the objects have two values (`name` and `category`).

```
[
  {name : 'key1', category : 'tech'},
  {name : 'key2', category : 'tech'},
  {name : 'key3', category : 'tech'},
  {name : 'cable1' , category : 'hard'}
  {name : 'cable2' , category : 'hard'}
  {name : 'cable3' , category : 'hard'}
  {name : 'cable4' , category : 'hard'}
]

```

I want to display all names but add an `<hr>` whenever reaches a new **category**

Please help and thank you of helping.