# Array filter from a letter

**URL:** <https://discourse.nodered.org/t/array-filter-from-a-letter/52395>\
**Category:** Dashboard\
**Created:** [19 October 2021 06:49 UTC](https://discourse.nodered.org/t/array-filter-from-a-letter/52395 "2021-10-19T06:49:46Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![RitaSghe](https://avatars.discourse-cdn.com/v4/letter/r/43a26b/32.png) [@RitaSghe](https://discourse.nodered.org/u/RitaSghe)\
**Post date:** [19 October 2021 11:04 UTC](https://discourse.nodered.org/t/array-filter-from-a-letter/52395/8 "2021-10-19T11:04:29Z")

</div>

@Colin  
no, msg.payload is my array that contains more value like title, title2, isCheked, icon  
and I try to filter by value "title2" to include all elements that are _alphabetically_ after "D", (including "D"), so D, E, F, G .....

In this thread ..

> [@JSON Array Filtering - Function Node](https://discourse.nodered.org/t/json-array-filtering-function-node/42827/2):
>
> See this post from earlier today which asks an almost identical question. [Filter Array of Objects](https://discourse.nodered.org/t/filter-array-of-objects/42808) [Edit] Note that if you are using the filter function you have to call filter on the Array, which is msg.payload.trains, not msg.payload.CA\_MSG, and you have to check for equality (at least I assume that is what you want) so the test is el.area\_id === "RT") [Edit] as pointed out below that should be el.CA\_MSG.area\_id

there is one your post for the filter I use (modified for my values of course)

---

_[View the full topic](https://discourse.nodered.org/t/array-filter-from-a-letter/52395)._
