Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Petros Charitopoulos
Petros Charitopoulos
21,396 Points

Angular Question

Hi to all,

I am facing this problem:

I have an API call which returns some arrays of properties values.

I want to access these properties but they don't have a standard name. In each array, they have a different number as the name of the property. For example in one array it can be something like:

2345: "CONFIRMED"

and in the next array will be:

3654: "CONFIRMED"

I can access the values using the special property:

$: "CONFIRMED"

Now, I need to access any value that starts with some specific characters. Is there something like $: ^="ORDER", that I can do?

Thanks!