want group data with same type in a div like the following:
product and article are my data type in map.
product
product
article
product
article
product
product
product
article
and I want to return that like the following:
<div>
product
product
</div>
article
<div>
product
</div>
article
<div>
product
product
product
</div>
article
Anyone can help me?
Top result on google search https://stackoverflow.com/questions/14446511/what-is-the-most-efficient-method-to-groupby-on-a-javascript-array-of-objects
Обсуждают сегодня