How do I group matching items only if they are next to each other

前端 未结 0 536
野性不改
野性不改 2020-12-07 03:00

Im trying to look over an array and create an array where items that match on a certain property and are next to each other are grouped:

For example:

          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题