I would like to solve this problem:
I got an Object that contains a property named specs. This property contains an Array of Objects that all have 2 properties:
- name
- value
So my object is like this:
Object
-Title
-Date
-Specs [Array]
-- [0] Name: "Power"
-- [0] Value: 5
-- [1] Name: "Weight"
-- [1] Value: 100
So - now I would like to check, if my Specs-Array contains an item that has the name "Power". If this is the case, I would like to use the value of this element.
How can I solve this?