I have array of items in the following structure.
[{column: 1, name: 'one'}, {column: 2, name: 'Two'},{column: 2, name: 'Three'},{column: 3, name: 'Four'}]
Need to loop through the array and items with same column value should be wrapped in single parent. Like,
<div class="parent">
One
</div>
<div class="parent">
<div>Two</div>
<div>Three</div>
</div>
<div class="parent">
Four
</div>
As you can see the second parent element have two child, because they have same column value "2".