# Help - Managing object arrays

**URL:** <https://discourse.nodered.org/t/help-managing-object-arrays/10784>\
**Category:** General\
**Created:** [3 May 2019 15:16 UTC](https://discourse.nodered.org/t/help-managing-object-arrays/10784 "2019-05-03T15:16:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![freddyrm](https://avatars.discourse-cdn.com/v4/letter/f/ecb155/32.png) [@freddyrm](https://discourse.nodered.org/u/freddyrm)\
**Post date:** [3 May 2019 15:16 UTC](https://discourse.nodered.org/t/help-managing-object-arrays/10784/1 "2019-05-03T15:16:18Z")

</div>

Hello,

This is my first post and I'm new to node-red so, sorry in advance 😃

So, heres the question:

I'm getting data from a device in REST format, the messages contains data of different kinds and in a casual order. I've managed to transform this stream in an object array with a few simple nodes.

Each array slot contains some information that later I'll need to calculate, now i want to sort and count objects based on the "type" so, every "createTrack" iteration should be recognized.

is there any default node that i ca use to manipulate this kind of object? The alternative is to write something in JS with the function node.

Thank in for any help 🙂

![Capture](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/6/647edf55fd5754b73caf62cc78e930d5b571aa0f.png)

---

<div class="post-metadata">

**Author:** ![moebius](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/moebius/32/2872_2.png) [@moebius](https://discourse.nodered.org/u/moebius)\
**Post date:** [3 May 2019 15:34 UTC](https://discourse.nodered.org/t/help-managing-object-arrays/10784/2 "2019-05-03T15:34:18Z")

</div>

Or you could try a msg based approach by using the split node and process each array element with switch and change nodes...
